From 67ea8e7fa06da6094effdb4358dd340f5d8b100e Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Sat, 15 Aug 2015 16:40:43 -0700 Subject: [PATCH] webapps.pastebin: fix calling >>annotations on f. --- extra/webapps/pastebin/pastebin.factor | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extra/webapps/pastebin/pastebin.factor b/extra/webapps/pastebin/pastebin.factor index 562639404a..81e07b44e6 100644 --- a/extra/webapps/pastebin/pastebin.factor +++ b/extra/webapps/pastebin/pastebin.factor @@ -80,10 +80,10 @@ TUPLE: annotation < entity parent ; : lookup-annotation ( id -- annotation ) [ f ] dip select-tuple ; -: paste ( id -- paste ) - [ select-tuple ] - [ f select-tuples ] - bi >>annotations ; +: paste ( id -- paste/f ) + [ select-tuple ] keep over [ + f select-tuples >>annotations + ] [ drop ] if ; ! ! ! ! LINKS, ETC