Commit 21a9943b authored by Martin Aumüller's avatar Martin Aumüller Committed by hjk
Browse files

fakevim: cursor position after deleting linewise should depend on 'startofline' setting



Merge-request: 113
Reviewed-by: default avatarhjk <qtc-committer@nokia.com>
parent 4c80a1ab
......@@ -1164,7 +1164,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
removeText(range);
setDotCommand("%1dd", count());
m_submode = NoSubMode;
moveToFirstNonBlankOnLine();
handleStartOfLine();
setTargetColumn();
finishMovement();
} else if (m_submode == ShiftLeftSubMode && key == '<') {
......@@ -1479,7 +1479,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
m_rangemode = RangeLineMode;
yankSelectedText();
removeSelectedText();
moveToFirstNonBlankOnLine();
handleStartOfLine();
} else if ((key == 'd' || key == 'x') && isVisualBlockMode()) {
leaveVisualMode();
m_rangemode = RangeBlockMode;
......
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