From df87077309d06207b234b1231128c205ec11a155 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 4 Aug 2026 23:58:13 +0200 Subject: fixed dot after an unsuccessful interactive search If you had a partial success during interactive searching, dot would be left at that position since the failure handling only reset via SCI_GOTOPOS. This is now fixed by restoring the initial dot in glyphs as well. All existing occurrences of "dot" have been renamed to "pos" for consistency. (Nowadays, "dot" should be reserved for glyph positions since this is what `.` returns. Especially if both kinds of positions are used in the same code.) A test case has been added. This has been broken since 685507922b0b75da5935076395a5b1ec1ef58356. --- tests/testsuite.at | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/testsuite.at b/tests/testsuite.at index 074e973..571b5b7 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -686,6 +686,11 @@ TE_CHECK_CMDLINE([[@^Um{:@S/XXX/} :Mm"S(0/0)' Mm"S(0/0)']], 0, ignore, stderr) AT_FAIL_IF([$GREP "^Error:" stderr]) AT_CLEANUP +AT_SETUP([Dot after unsuccessful interactive search]) +TE_CHECK_CMDLINE([[@I/ABC/J :@S/CX/"S(0/0)' ."N(0/0)']], 0, ignore, stderr) +AT_FAIL_IF([$GREP "^Error:" stderr]) +AT_CLEANUP + AT_SETUP([Overwriting builtin registers]) # Initializes registers in batch mode, which are later replaced during startup # of interactive mode. -- cgit v1.2.3