From 5e7f77d23a72503379854a827c2fea92317098b0 Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Fri, 10 Jan 2020 03:07:36 -0300 Subject: [PATCH] Ctrl+left/right arrows now properly stops cursor at the end of lines. --- source/ide/ide_methods.bas | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/ide/ide_methods.bas b/source/ide/ide_methods.bas index aa8562862..4eed3c107 100644 --- a/source/ide/ide_methods.bas +++ b/source/ide/ide_methods.bas @@ -3394,8 +3394,9 @@ FUNCTION ide2 (ignore) IF idecy = 1 THEN idecx = 1: GOTO specialchar idecy = idecy - 1 a$ = idegetline(idecy) - idecx = LEN(a$) + idecx = LEN(a$) + 1 LOOP UNTIL LEN(a$) + GOTO specialchar 'stop at the end of the previous line END IF 'check character IF alphanumeric(ASC(a$, idecx)) THEN @@ -3429,6 +3430,7 @@ FUNCTION ide2 (ignore) 'move IF first = 0 THEN idecx = idecx + 1 'latch onto next character + IF first = 0 AND idecx = LEN(a$) + 1 THEN GOTO specialchar 'stop at the end of the line IF idecx > LEN(a$) THEN DO IF idecy = iden THEN GOTO specialchar