diff options
author | nyamatongwe <unknown> | 2009-03-08 09:26:32 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-03-08 09:26:32 +0000 |
commit | cbde61f4e10adf0d9cf6b88c9474c781e1a9ae96 (patch) | |
tree | 7237736d72aa74be6ddc8452017d21f756805085 /src/ScintillaBase.cxx | |
parent | 5f4ef4376d75c309cc73499d8fca3ff6623660cb (diff) | |
download | scintilla-mirror-cbde61f4e10adf0d9cf6b88c9474c781e1a9ae96.tar.gz |
Fix from John Ehresman to be safe when calling AutoCompleteGetCurrent when
no autocompletion is active.
Diffstat (limited to 'src/ScintillaBase.cxx')
-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(); } |