From 548093449967bb84aaf112df736428681657c528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Techet?= Date: Fri, 8 Mar 2024 07:56:22 +1100 Subject: Bug [#2403]. Add SC_AUTOCOMPLETE_SELECT_FIRST_ITEM. This option always selects the first item in the autocompletion list. --- src/ScintillaBase.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index a629cdd33..c66a689b7 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -353,6 +353,8 @@ void ScintillaBase::AutoCompleteMove(int delta) { } void ScintillaBase::AutoCompleteMoveToCurrentWord() { + if (FlagSet(ac.options, AutoCompleteOption::SelectFirstItem)) + return; std::string wordCurrent = RangeText(ac.posStart - ac.startLen, sel.MainCaret()); ac.Select(wordCurrent.c_str()); } -- cgit v1.2.3