aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/AutoComplete.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2005-03-09 03:34:46 +0000
committernyamatongwe <devnull@localhost>2005-03-09 03:34:46 +0000
commit693e547da376d8790fbdcdf228c9d57810ec9f46 (patch)
tree526577481daf6dbee2aeb0142d9baa8c3b97e117 /src/AutoComplete.cxx
parentce0de36921c21505d141fb6a21a9f671b56e9529 (diff)
downloadscintilla-mirror-693e547da376d8790fbdcdf228c9d57810ec9f46.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() {