diff --git a/basis/ui/gadgets/panes/panes-tests.factor b/basis/ui/gadgets/panes/panes-tests.factor index 766e395ef2..680b6fe57f 100644 --- a/basis/ui/gadgets/panes/panes-tests.factor +++ b/basis/ui/gadgets/panes/panes-tests.factor @@ -106,3 +106,9 @@ ARTICLE: "test-article-2" "This is a test article" [ ] [ \ = [ see ] [ ] with-grafted-gadget ] unit-test + +: ( -- foo ) + pane new-pane ; + +[ t ] [ dup input>> child? ] unit-test +[ t ] [ dup last-line>> child? ] unit-test \ No newline at end of file diff --git a/basis/ui/gadgets/panes/panes.factor b/basis/ui/gadgets/panes/panes.factor index 5b3290d64a..aef8fda066 100644 --- a/basis/ui/gadgets/panes/panes.factor +++ b/basis/ui/gadgets/panes/panes.factor @@ -63,7 +63,9 @@ M: pane gadget-selection ( pane -- string/f ) selection-color >>selection-color ; inline : init-last-line ( pane -- pane ) - horizontal [ >>last-line ] [ 1 track-add ] bi ; inline + horizontal + [ >>last-line ] [ 1 track-add ] bi + dup prepare-last-line ; inline : new-pane ( input class -- pane ) [ vertical ] dip new-track