]> gitweb.factorcode.org Git - factor.git/commitdiff
documents: rename string-lines to split-lines so I don't get restarts.
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 15 Mar 2016 17:41:14 +0000 (10:41 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 15 Mar 2016 17:41:14 +0000 (10:41 -0700)
basis/documents/documents.factor

index c33a5c7a249f1778831e7afdd760e694c825c7a6..ca9440ff370def31b4db9502028bffede5426200 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.
-: string-lines ( str -- seq )
+: split-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 string-lines :> new-lines
+        string split-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