Browse Source

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
pull/343/head^2
harrybharry 17 years ago
parent
commit
9448135225
  1. 4
      PowerEditor/src/ScitillaComponent/AutoCompletion.cpp

4
PowerEditor/src/ScitillaComponent/AutoCompletion.cpp

@ -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));

Loading…
Cancel
Save