From 6ada6a475d2c40baca1df0002caddfc0b5128e5a Mon Sep 17 00:00:00 2001 From: Fellippe Heitor Date: Fri, 5 Mar 2021 14:38:46 -0300 Subject: [PATCH] Fixes error in contextual menu. Right-clicking a series of high-ascii characters would crash the ide when right-clicking to open the contextual menu. --- source/ide/ide_methods.bas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ide/ide_methods.bas b/source/ide/ide_methods.bas index 7235972f9..5b2c1637c 100644 --- a/source/ide/ide_methods.bas +++ b/source/ide/ide_methods.bas @@ -13351,7 +13351,7 @@ SUB IdeMakeContextualMenu v = 0 CurrSF$ = FindCurrentSF$(idecy) - IF NOT Error_Happened THEN v = HashFind(a2$, HASHFLAG_LABEL, ignore, r) + IF validname(a2$) THEN v = HashFind(a2$, HASHFLAG_LABEL, ignore, r) CheckThisLabel: IF v THEN LabelLineNumber = Labels(r).SourceLineNumber