diff options
author | nyamatongwe <devnull@localhost> | 2009-03-08 09:26:32 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2009-03-08 09:26:32 +0000 |
commit | 32a9847825935dc60b7e9a400bd9683d45e5f29c (patch) | |
tree | 7237736d72aa74be6ddc8452017d21f756805085 /src | |
parent | 9bccfee022457bcd466108ca41a810e5b2f9df55 (diff) | |
download | scintilla-mirror-32a9847825935dc60b7e9a400bd9683d45e5f29c.tar.gz |
Fix from John Ehresman to be safe when calling AutoCompleteGetCurrent when
no autocompletion is active.
Diffstat (limited to 'src')
-rw-r--r-- | src/ScintillaBase.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index d2b6a3ed8..31e580336 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -386,6 +386,8 @@ void ScintillaBase::AutoCompleteCompleted() { } int ScintillaBase::AutoCompleteGetCurrent() { + if (!ac.Active()) + return -1; return ac.lb->GetSelection(); } |