1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2026-04-20 01:16:36 +00:00

Fix past last line redraw

This commit is contained in:
David Schmenk
2025-03-07 07:45:33 -08:00
parent bd5f97c91d
commit 8bb1efcf95
3 changed files with 4 additions and 5 deletions
Binary file not shown.
Binary file not shown.
+4 -5
View File
@@ -533,9 +533,9 @@ def drawrows(toprow, bottomrow)#0
huns, tens = divmod(viewtop + toprow + 1, 100)
tens, ones = divmod(tens, 10)
for row = toprow to bottomrow
conio:gotoxy(0, row)
scrnrow = row + viewtop
if scrnrow < numlines
conio:gotoxy(0, row)
if flags & gutter
seperator = viewleft ?? '<' :: ' '
if flags & selection
@@ -556,12 +556,11 @@ def drawrows(toprow, bottomrow)#0
strptr = txtlinbuf=>[scrnrow]
numchars = ^strptr - viewleft
if numchars >= viewwidth
conio:putchars(viewwidth, strptr + viewleft + 1)
else
conio:putchars(numchars, strptr + viewleft + 1)
conio:clear(cleol)
numchars = viewwidth
fin
conio:putchars(numchars, strptr + viewleft + 1)
fin
conio:clear(cleol)
next
end
def drawscrn#0