Commit 43ceec94 authored by hjk's avatar hjk

FakeVim: Initialize new m_inFakeVim member

Also move initialization before connection setup.

Task-number: QTCREATORBUG-10443
Change-Id: I3f3d074534a44a0aa6b8cc60c8ffbcd22d96ca33
Reviewed-by: default avatarChristian Stenger <>
parent 4ffd5403
......@@ -2056,22 +2056,23 @@ FakeVimHandler::Private::GlobalData FakeVimHandler::Private::g;
FakeVimHandler::Private::Private(FakeVimHandler *parent, QWidget *widget)
//static PythonHighlighterRules pythonRules;
q = parent;
m_textedit = qobject_cast<QTextEdit *>(widget);
m_plaintextedit = qobject_cast<QPlainTextEdit *>(widget);
if (editor()) {
connect(EDITOR(document()), SIGNAL(contentsChange(int,int,int)),
connect(EDITOR(document()), SIGNAL(undoCommandAdded()), SLOT(onUndoCommandAdded()));
m_lastRevision = revision();
//new Highlighter(document(), &pythonRules);
void FakeVimHandler::Private::init()
m_inFakeVim = false;
m_findStartPosition = -1;
m_visualBlockInsert = false;
m_fakeEnd = false;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment