mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-14 21:09:05 +08:00
+fix: don't show auto-completion list if typed word matches the one and only word in list
This commit is contained in:
parent
296a766d91
commit
bb069c47e9
10
src/Edit.c
10
src/Edit.c
@ -7995,7 +7995,6 @@ bool EditAutoCompleteWord(HWND hwnd, bool autoInsert)
|
||||
|
||||
ft.chrg.cpMin = (DocPosCR)iWordEndPos;
|
||||
iPosFind = SciCall_FindTextFull(SCFIND_WORDSTART, &ft);
|
||||
//iPosFind = SciCall_FindText(SCFIND_WORDSTART, &ft);
|
||||
}
|
||||
FreeMem(pwlNewWord);
|
||||
pwlNewWord = NULL;
|
||||
@ -8047,9 +8046,14 @@ bool EditAutoCompleteWord(HWND hwnd, bool autoInsert)
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
if (iNumWords > 0) {
|
||||
SciCall_AutoCCancel();
|
||||
|
||||
if (iNumWords) {
|
||||
|
||||
//if ((iNumWords == 1) && (StringCchCompareXIA(pRoot, pListHead->word) == 0)) {
|
||||
// return true;
|
||||
//}
|
||||
|
||||
SciCall_AutoCCancel();
|
||||
SciCall_AutoCSetChooseSingle(autoInsert);
|
||||
|
||||
const char* const sep = " ";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user