From e06d6b71f6bb04f2a7ecc691e797fac6af697e59 Mon Sep 17 00:00:00 2001 From: Andrey Sokolov Date: Sat, 26 Apr 2025 21:22:00 +0300 Subject: [PATCH] Delete indicators when a selection exists When a user double clicked a word, the word was selected and highlighted with automark, but no new highlightings appeared on scrolling the file. The word was highlighted near the selection only. In this case, it is better not to highlight this word anywhere, so as not to confuse the user. --- automark/src/automark.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/automark/src/automark.c b/automark/src/automark.c index e0f7b42f7..e6c9cbc5b 100644 --- a/automark/src/automark.c +++ b/automark/src/automark.c @@ -110,7 +110,10 @@ automark(gpointer user_data) /* Do not highlight while selecting text and allow other markers to work */ if (sci_has_selection(sci)) + { + editor_indicator_clear(editor, AUTOMARK_INDICATOR); return FALSE; + } text = get_current_word(editor->sci);