From 07c867846a2eaf178ab5a91199a8000806f49836 Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Tue, 15 Mar 2016 10:41:14 -0700 Subject: [PATCH] documents: rename string-lines to split-lines so I don't get restarts. --- basis/documents/documents.factor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/basis/documents/documents.factor b/basis/documents/documents.factor index c33a5c7a24..ca9440ff37 100644 --- a/basis/documents/documents.factor +++ b/basis/documents/documents.factor @@ -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 document add-undo