diff options
author | nyamatongwe <unknown> | 2003-02-26 11:01:23 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2003-02-26 11:01:23 +0000 |
commit | bdaa83673ced7c92a2038ecac902fceaa79c92cf (patch) | |
tree | 531633f8f4a202455cb1a75e1e7aee3b3fa6618f /src/ScintillaBase.cxx | |
parent | c9c3bb9057bea039e3fa6da06db1f07b631f5df7 (diff) | |
download | scintilla-mirror-bdaa83673ced7c92a2038ecac902fceaa79c92cf.tar.gz |
Ensure text used in user list selection notification is initialised to ""
in case user presses enter when no item selected.
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r-- | src/ScintillaBase.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index a112a4af6..0af04ad0b 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -307,6 +307,7 @@ void ScintillaBase::AutoCompleteCharacterDeleted() { void ScintillaBase::AutoCompleteCompleted() { int item = ac.lb->GetSelection(); char selected[1000]; + selected[0] = '\0'; if (item != -1) { ac.lb->GetValue(item, selected, sizeof(selected)); } |