Oops, forgot to call prepare-last-line
parent
ec186a23dc
commit
5c88b18a9a
|
@ -106,3 +106,9 @@ ARTICLE: "test-article-2" "This is a test article"
|
|||
[ ] [
|
||||
\ = <model> [ see ] <pane-control> [ ] with-grafted-gadget
|
||||
] unit-test
|
||||
|
||||
: <test-pane> ( -- foo )
|
||||
<gadget> pane new-pane ;
|
||||
|
||||
[ t ] [ <test-pane> dup input>> child? ] unit-test
|
||||
[ t ] [ <test-pane> dup last-line>> child? ] unit-test
|
|
@ -63,7 +63,9 @@ M: pane gadget-selection ( pane -- string/f )
|
|||
selection-color >>selection-color ; inline
|
||||
|
||||
: init-last-line ( pane -- pane )
|
||||
horizontal <track> [ >>last-line ] [ 1 track-add ] bi ; inline
|
||||
horizontal <track>
|
||||
[ >>last-line ] [ 1 track-add ] bi
|
||||
dup prepare-last-line ; inline
|
||||
|
||||
: new-pane ( input class -- pane )
|
||||
[ vertical ] dip new-track
|
||||
|
|
Loading…
Reference in New Issue