From b0c4d52e45c66a313616e041d55bef8ac12b8da7 Mon Sep 17 00:00:00 2001 From: Fellippe Heitor Date: Thu, 5 Mar 2020 12:18:53 -0300 Subject: [PATCH] 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. --- source/ide/ide_methods.bas | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/ide/ide_methods.bas b/source/ide/ide_methods.bas index f1e2a451e..e4e07ee9c 100644 --- a/source/ide/ide_methods.bas +++ b/source/ide/ide_methods.bas @@ -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