diff --git a/extra/terminfo/terminfo.factor b/extra/terminfo/terminfo.factor index 3ba32d1f83..d90d07a82e 100644 --- a/extra/terminfo/terminfo.factor +++ b/extra/terminfo/terminfo.factor @@ -30,7 +30,7 @@ C: terminfo-header 5 firstn ; : 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 ;