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

Fix cursor to end hard coded fo 24 lines

This commit is contained in:
David Schmenk
2025-03-06 20:02:36 -08:00
parent 9430f28df0
commit b729ceabc7
2 changed files with 4 additions and 6 deletions
Binary file not shown.
+4 -6
View File
@@ -534,8 +534,8 @@ def drawrows(toprow, bottomrow)#0
tens, ones = divmod(tens, 10)
for row = toprow to bottomrow
scrnrow = row + viewtop
conio:gotoxy(0, row)
if scrnrow < numlines
conio:gotoxy(0, row)
if flags & gutter
seperator = viewleft ?? '<' :: ' '
if flags & selection
@@ -561,8 +561,6 @@ def drawrows(toprow, bottomrow)#0
conio:putchars(numchars, strptr + viewleft + 1)
conio:clear(cleol)
fin
else
conio:clear(cleol)
fin
next
end
@@ -619,10 +617,10 @@ def curshome#0
drawscrn
end
def cursend#0
if numlines > 23
if numlines > scrnheight - 1
cursrow = numlines - 1
cursy = 23
viewtop = cursrow - 23
cursy = scrnheight - 1
viewtop = cursrow - scrnheight - 1
else
cursrow = numlines - 1
cursy = numlines - 1