From 261d6fc97de7d64c526218099ac6ea02e602a069 Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Thu, 7 Jan 2016 00:20:29 -0200 Subject: [PATCH] Fix ESC deleting the current selection. --- source/ide/ide_methods.bas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ide/ide_methods.bas b/source/ide/ide_methods.bas index 3ab051919..96e0f1bb4 100644 --- a/source/ide/ide_methods.bas +++ b/source/ide/ide_methods.bas @@ -3173,6 +3173,8 @@ DO END IF END IF + IF K$ = CHR$(27) AND NOT AltSpecial THEN GOTO specialchar 'Steve edit 07-04-2014 to stop ESC from printing chr$(27) in the IDE + 'standard character IF ideselect THEN GOSUB delselect idechangemade = 1 @@ -3195,8 +3197,6 @@ DO a$ = idegetline(idecy) IF LEN(a$) < idecx - 1 THEN a$ = a$ + SPACE$(idecx - 1 - LEN(a$)) - IF K$ = CHR$(27) AND NOT AltSpecial THEN GOTO specialchar 'Steve edit 07-04-2014 to stop ESC from printing chr$(27) in the IDE - IF ideinsert THEN a2$ = RIGHT$(a$, LEN(a$) - idecx + 1) IF LEN(a2$) THEN a2$ = RIGHT$(a$, LEN(a$) - idecx)