From 91c120bd96299b611f60b7416487184de7bd2222 Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Sun, 8 Sep 2019 14:12:36 +0200 Subject: [PATCH] + fix: if AutoCompl. is chosen, only show corresponding word list(s) on Ctrl+Alt-Enter --- src/Edit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Edit.c b/src/Edit.c index 080273e70..329c96494 100644 --- a/src/Edit.c +++ b/src/Edit.c @@ -6934,7 +6934,7 @@ bool EditAutoCompleteWord(HWND hwnd, bool autoInsert) PWLIST pListHead = NULL; - if (Settings.AutoCompleteWords || autoInsert) + if (Settings.AutoCompleteWords || (autoInsert && !Settings.AutoCLexerKeyWords)) { struct Sci_TextToFind ft = { { 0, 0 }, 0, { 0, 0 } }; ft.lpstrText = pRoot; @@ -6977,7 +6977,7 @@ bool EditAutoCompleteWord(HWND hwnd, bool autoInsert) if (pwlNewWord) { FreeMem(pwlNewWord); pwlNewWord = NULL; } } // -------------------------------------------------------------------------- - if (Settings.AutoCLexerKeyWords || autoInsert) + if (Settings.AutoCLexerKeyWords || (autoInsert && !Settings.AutoCompleteWords)) // -------------------------------------------------------------------------- { PKEYWORDLIST const pKeyWordList = Style_GetCurrentLexerPtr()->pKeyWords;