Commit 78205847 authored by Vladimir Kuznetsov's avatar Vladimir Kuznetsov Committed by hjk
Browse files

Correctly move cursor after Backspace when following identation.



Merge-request: 132
Reviewed-by: default avatarhjk <qtc-committer@nokia.com>
parent 0a6bb82e
......@@ -2278,6 +2278,8 @@ EventResult FakeVimHandler::Private::handleInsertMode(const Input &input)
const int newcol = col.logical - 1 - (col.logical - 1) % ts;
data.remove(0, col.physical);
setLineContents(line, tabExpand(newcol).append(data));
moveToStartOfLine();
moveRight(newcol);
m_lastInsertion.clear(); // FIXME
} else {
m_tc.deletePreviousChar();
......
Supports Markdown
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