mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-03 08:51:22 +00:00
Fixes QuickNav bug creating ghost lines
Using QuickNav when the last position used to be in an area off limits (after user deletes lines, for example) would create a bunch of empty lines at the end of a loaded program.
This commit is contained in:
parent
a3979f79d3
commit
b0c4d52e45
|
@ -1266,6 +1266,14 @@ FUNCTION ide2 (ignore)
|
||||||
END IF
|
END IF
|
||||||
|
|
||||||
'Hover/click (QuickNav)
|
'Hover/click (QuickNav)
|
||||||
|
IF QuickNavTotal > 0 THEN
|
||||||
|
DO UNTIL QuickNavHistory(QuickNavTotal) <= iden
|
||||||
|
'make sure that the line number in history still exists
|
||||||
|
QuickNavTotal = QuickNavTotal - 1
|
||||||
|
IF QuickNavTotal = 0 THEN EXIT DO
|
||||||
|
LOOP
|
||||||
|
END IF
|
||||||
|
|
||||||
IF IdeSystem = 1 AND QuickNavTotal > 0 AND EnableQuickNav THEN
|
IF IdeSystem = 1 AND QuickNavTotal > 0 AND EnableQuickNav THEN
|
||||||
IF mY = 2 THEN
|
IF mY = 2 THEN
|
||||||
IF mX >= 4 AND mX <= 6 THEN
|
IF mX >= 4 AND mX <= 6 THEN
|
||||||
|
|
Loading…
Reference in a new issue