]> gitweb.factorcode.org Git - factor.git/commitdiff
documents: whoops, doc-lines conflicts with doc-lines.
authorJohn Benediktsson <mrjbq7@gmail.com>
Mon, 14 Mar 2016 00:01:38 +0000 (17:01 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 14 Mar 2016 00:01:58 +0000 (17:01 -0700)
basis/documents/documents.factor

index 4827e7b4ec0f0295c8f6924c01a48c4d1eefc406..c33a5c7a249f1778831e7afdd760e694c825c7a6 100644 (file)
@@ -114,7 +114,7 @@ CONSTANT: doc-start { 0 0 }
 ! XXX: This is the old string-lines behavior, it would be nice
 ! if we could update documents to work with the new string-lines
 ! behavior.
-: doc-lines ( str -- seq )
+: string-lines ( str -- seq )
     dup [ "\r\n" member? ] any? [
         "\n" split
         [
@@ -144,7 +144,7 @@ PRIVATE>
 
 :: set-doc-range ( string from to document -- )
     from to = string empty? and [
-        string doc-lines :> new-lines
+        string string-lines :> new-lines
         new-lines from text+loc :> new-to
         from to document doc-range :> old-string
         old-string string from to new-to <edit> document add-undo