aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/AutoComplete.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2005-03-09 03:34:46 +0000
committernyamatongwe <unknown>2005-03-09 03:34:46 +0000
commitafc7afe13b6eb49984e1c9c66eef3cebc1392a09 (patch)
tree526577481daf6dbee2aeb0142d9baa8c3b97e117 /src/AutoComplete.cxx
parentb64920976eb1ddc19630f435c2aee7788b6b6815 (diff)
downloadscintilla-mirror-afc7afe13b6eb49984e1c9c66eef3cebc1392a09.tar.gz
Patch from Blair McGlashan to send a notification before accepting an autocompletion.
Diffstat (limited to 'src/AutoComplete.cxx')
-rw-r--r--src/AutoComplete.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/AutoComplete.cxx b/src/AutoComplete.cxx
index b4d14944f..65b1788bb 100644
--- a/src/AutoComplete.cxx
+++ b/src/AutoComplete.cxx
@@ -118,9 +118,10 @@ void AutoComplete::SetList(const char *list) {
}
}
-void AutoComplete::Show() {
- lb->Show();
- lb->Select(0);
+void AutoComplete::Show(bool show) {
+ lb->Show(show);
+ if (show)
+ lb->Select(0);
}
void AutoComplete::Cancel() {