Fix wordcompletion bug: API file had to be present to function.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@221 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
harrybharry 2008-06-07 16:08:13 +00:00
parent 3e551ff84b
commit 9448135225
1 changed files with 2 additions and 2 deletions

View File

@ -72,8 +72,8 @@ bool AutoCompletion::showAutoComplete() {
} }
bool AutoCompletion::showWordComplete(bool autoInsert) { bool AutoCompletion::showWordComplete(bool autoInsert) {
if (!_active) //if (!_active) //word completion doesnt need api
return false; // return false;
int curPos = int(_pEditView->execute(SCI_GETCURRENTPOS)); int curPos = int(_pEditView->execute(SCI_GETCURRENTPOS));
int startPos = int(_pEditView->execute(SCI_WORDSTARTPOSITION, curPos, true)); int startPos = int(_pEditView->execute(SCI_WORDSTARTPOSITION, curPos, true));