]> gitweb.factorcode.org Git - factor.git/commitdiff
ui.gadgets.panes: make sure walker scrolls to the bottom
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 3 Mar 2022 23:04:15 +0000 (15:04 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 3 Mar 2022 23:04:15 +0000 (15:04 -0800)
basis/ui/gadgets/panes/panes.factor

index 0d5248cceac926bafd13fd6b962750caf3b36cfb..82176f4dd3220a3b525b6ac5c29926c801997b7d 100644 (file)
@@ -211,8 +211,10 @@ M: pane-stream write-gadget
     bi ;
 
 : with-pane ( pane quot -- )
-    [ [ scroll>top ] [ clear-pane ] [ <pane-stream> ] tri ] dip
-    with-output-stream* ; inline
+    over [
+        [ [ scroll>top ] [ clear-pane ] [ <pane-stream> ] tri ] dip
+        with-output-stream*
+    ] dip scroll>bottom ; inline
 
 : make-pane ( quot -- gadget )
     [ <pane> ] dip '[ _ with-pane ] keep smash-pane ; inline