aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2012-06-16 20:52:09 +1000
committernyamatongwe <devnull@localhost>2012-06-16 20:52:09 +1000
commit6b61cd57097eba543a36f6cd78954c43e31a7bef (patch)
tree2ebe396151744da1e3f34e607ddb8088015211a6 /src
parentdb0887edb399b13ad0b5f18b88eac52a18acb26a (diff)
downloadscintilla-mirror-6b61cd57097eba543a36f6cd78954c43e31a7bef.tar.gz
Existing autocompletion list is cancelled when single entry automatically
accepted.
Diffstat (limited to 'src')
-rw-r--r--src/ScintillaBase.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx
index 9d4f93c3f..d730457fd 100644
--- a/src/ScintillaBase.cxx
+++ b/src/ScintillaBase.cxx
@@ -213,6 +213,7 @@ void ScintillaBase::AutoCompleteStart(int lenEntered, const char *list) {
pdoc->InsertString(sel.MainCaret(), list + lenEntered, lenInsert - lenEntered);
SetEmptySelection(sel.MainCaret() + lenInsert - lenEntered);
}
+ ac.Cancel();
return;
}
}