~vdupras/duskos

c3e4eea048bf5a419dd33c258744aeb19b04d74e — Virgil Dupras a month ago 55227af
text/ged: fix PS leak

Back to dogfooding under my old laptop after this long HAL development. Feels
nice.
1 files changed, 2 insertions(+), 1 deletions(-)

M fs/text/ged.fs
M fs/text/ged.fs => fs/text/ged.fs +2 -1
@@ 28,7 28,8 @@ grid COLS grid LINES * 1- const _maxpos
: _spitpage ( fromidx -- )
  0 _height for2 ( fromidx )
    dup i + dup edbuf :linecnt < if ( fromidx idx )
      i grid COLS * swap edbuf :line _spitline else i grid :clrline then
      i grid COLS * swap edbuf :line _spitline
      else drop i grid :clrline then
    next drop ;

: _top! ( lineno -- ) dup to _top _spitpage ;