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:
Binary file not shown.
+4
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user