fakevim: 'S' should honour indentation settings

fixed by using finishMovement instead of doing all the work

Merge-request: 99
Reviewed-by: hjk <qtc-committer@nokia.com>
This commit is contained in:
Martin Aumüller
2010-01-21 17:38:28 +01:00
committed by hjk
parent 073f14bee8
commit 5994044b64

View File

@@ -1674,13 +1674,12 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
const int line = cursorLineInDocument() + 1;
setAnchor(firstPositionInLine(line));
setPosition(lastPositionInLine(line + count() - 1));
yankSelectedText();
removeSelectedText();
setDotCommand("%1S", count());
m_opcount.clear();
m_mvcount.clear();
enterInsertMode();
m_beginEditBlock = false;
m_submode = ChangeSubMode;
m_movetype = MoveLineWise;
finishMovement();
} else if (key == 't') {
m_movetype = MoveInclusive;
m_subsubmode = FtSubSubMode;