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. --- include/Scintilla.h | 1 + include/Scintilla.iface | 2 ++ include/ScintillaTypes.h | 1 + 3 files changed, 4 insertions(+) (limited to 'include') diff --git a/include/Scintilla.h b/include/Scintilla.h index 4ea264d8e..9b53ae174 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -445,6 +445,7 @@ typedef sptr_t (*SciFnDirectStatus)(sptr_t ptr, unsigned int iMessage, uptr_t wP #define SCI_AUTOCGETAUTOHIDE 2119 #define SC_AUTOCOMPLETE_NORMAL 0 #define SC_AUTOCOMPLETE_FIXED_SIZE 1 +#define SC_AUTOCOMPLETE_SELECT_FIRST_ITEM 2 #define SCI_AUTOCSETOPTIONS 2638 #define SCI_AUTOCGETOPTIONS 2639 #define SCI_AUTOCSETDROPRESTOFWORD 2270 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index 9f5b5a054..3f88653ce 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -1100,6 +1100,8 @@ enu AutoCompleteOption=SC_AUTOCOMPLETE_ val SC_AUTOCOMPLETE_NORMAL=0 # Win32 specific: val SC_AUTOCOMPLETE_FIXED_SIZE=1 +# Always select the first item in the autocompletion list: +val SC_AUTOCOMPLETE_SELECT_FIRST_ITEM=2 # Set autocompletion options. set void AutoCSetOptions=2638(AutoCompleteOption options,) diff --git a/include/ScintillaTypes.h b/include/ScintillaTypes.h index 4692e9916..128b73002 100644 --- a/include/ScintillaTypes.h +++ b/include/ScintillaTypes.h @@ -249,6 +249,7 @@ enum class IndicFlag { enum class AutoCompleteOption { Normal = 0, FixedSize = 1, + SelectFirstItem = 2, }; enum class IndentView { -- cgit v1.2.3