]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/xmode/marker/marker.factor
Fix another XMode bug
[factor.git] / basis / xmode / marker / marker.factor
index 98b4f91f86541ca0411f170edb40a33afc8f53b0..b4c1cd6a48dfaf50410a75d1da25adbb5275171e 100755 (executable)
@@ -84,7 +84,7 @@ M: string-matcher text-matches?
     ] keep string>> length and ;
 
 M: regexp text-matches?
-    [ >string ] dip first-match to>> ;
+    [ >string ] dip first-match dup [ to>> ] when ;
 
 : rule-start-matches? ( rule -- match-count/f )
     dup start>> tuck swap can-match-here? [