]> gitweb.factorcode.org Git - factor.git/commitdiff
terminfo: 1 head* is but-last
authorJon Harper <jon.harper87@gmail.com>
Fri, 26 Apr 2013 17:57:54 +0000 (20:57 +0300)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 26 Apr 2013 18:24:40 +0000 (11:24 -0700)
extra/terminfo/terminfo.factor

index 3ba32d1f833050e439317704234178b04d82894f..d90d07a82e92a254f0d2734867adfcfcddfa68f0 100644 (file)
@@ -30,7 +30,7 @@ C: <terminfo-header> terminfo-header
     5 firstn <terminfo-header> ;
 
 : read-names ( header -- names )
-    names-bytes>> read 1 head* "|" split [ >string ] map ;
+    names-bytes>> read but-last "|" split [ >string ] map ;
 
 : read-booleans ( header -- booleans )
     boolean-bytes>> read [ 1 = ] { } map-as ;