From bdaa83673ced7c92a2038ecac902fceaa79c92cf Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 26 Feb 2003 11:01:23 +0000 Subject: Ensure text used in user list selection notification is initialised to "" in case user presses enter when no item selected. --- src/ScintillaBase.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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)); } -- cgit v1.2.3