]> gitweb.factorcode.org Git - factor.git/commitdiff
gopher: change gopher-text to use split1.
authorJohn Benediktsson <mrjbq7@gmail.com>
Sat, 20 Dec 2014 20:11:23 +0000 (12:11 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sat, 20 Dec 2014 20:11:23 +0000 (12:11 -0800)
extra/gopher/gopher.factor

index 1fb412b6b8c5ae906768a07a1172bc6ca99e6d30..c1d80872c627be07b7e70bce92d61216f4071b7a 100644 (file)
@@ -81,8 +81,7 @@ M: gopher-link >url
     ] if >url ;
 
 : gopher-text ( object -- lines )
-    utf8 decode string-lines
-    "." over index [ head ] when* ;
+    utf8 decode string-lines { "." } split1 drop ;
 
 : gopher-gif ( object -- image )
     "gif" (image-class) load-image* ;