From 1f3a106230ee29537e428cae2639f8e61c2e4506 Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Fri, 10 Jan 2020 02:28:24 -0300 Subject: [PATCH] Sets ActiveINCLUDELink only if the $included file is found. --- source/ide/ide_methods.bas | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/ide/ide_methods.bas b/source/ide/ide_methods.bas index 3b99fae11..aa8562862 100644 --- a/source/ide/ide_methods.bas +++ b/source/ide/ide_methods.bas @@ -8670,13 +8670,12 @@ SUB ideshowtext FindInclude = INSTR(a2$, "$INCLUDE") IF FindInclude > 0 THEN link_idecx = LEN(a$) - ActiveINCLUDELink = idecy FindApostrophe1 = INSTR(FindInclude + 8, a2$, "'") FindApostrophe2 = INSTR(FindApostrophe1 + 1, a2$, "'") ActiveINCLUDELinkFile = MID$(a$, FindApostrophe1 + 1, FindApostrophe2 - FindApostrophe1 - 1) p$ = idepath$ + pathsep$ f$ = p$ + ActiveINCLUDELinkFile - IF _FILEEXISTS(f$) THEN a$ = a$ + " --> Double-click to open" + IF _FILEEXISTS(f$) THEN a$ = a$ + " --> Double-click to open": ActiveINCLUDELink = idecy END IF END IF 'l = idecy