1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-01 10:20:42 +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:
Fellippe Heitor 2020-03-05 12:18:53 -03:00
parent a3979f79d3
commit b0c4d52e45

View file

@ -1266,6 +1266,14 @@ FUNCTION ide2 (ignore)
END IF
'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 mY = 2 THEN
IF mX >= 4 AND mX <= 6 THEN