Commit 05d555ac authored by hjk's avatar hjk
Browse files

fakevim: fix problem with <Backspace> in insert mode on new line when

AutoIndent is on
parent d7fb6ea5
......@@ -1585,6 +1585,7 @@ EventResult FakeVimHandler::Private::handleInsertMode(int key, int,
} else if (key >= control('a') && key <= control('z')) {
// ignore these
} else if (!text.isEmpty()) {
m_justAutoIndented = false;
m_lastInsertion.append(text);
if (m_submode == ReplaceSubMode) {
if (atEndOfLine())
......
......@@ -121,6 +121,7 @@ int main(int argc, char *argv[])
theFakeVimSetting(ConfigUseFakeVim)->setValue(true);
theFakeVimSetting(ConfigShiftWidth)->setValue(8);
theFakeVimSetting(ConfigTabStop)->setValue(8);
theFakeVimSetting(ConfigAutoIndent)->setValue(true);
handler.installEventFilter();
handler.setupWidget();
......
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