fakevim: fine-tune autocompletion

This commit is contained in:
hjk
2009-03-25 14:52:13 +01:00
parent 573b33d79e
commit 0807ca53c9
3 changed files with 12 additions and 4 deletions

View File

@@ -47,6 +47,7 @@
#include <texteditor/basetexteditor.h>
#include <texteditor/basetextmark.h>
#include <texteditor/completionsupport.h>
#include <texteditor/itexteditor.h>
#include <texteditor/texteditorconstants.h>
#include <texteditor/interactionsettings.h>
@@ -244,7 +245,9 @@ void FakeVimPluginPrivate::triggerCompletions()
if (!handler)
return;
if (BaseTextEditor *bt = qobject_cast<BaseTextEditor *>(handler->widget()))
bt->triggerCompletions();
TextEditor::Internal::CompletionSupport::instance()->
autoComplete(bt->editableInterface(), false);
// bt->triggerCompletions();
}
void FakeVimPluginPrivate::writeFile(bool *handled,