Commit 2e1f898c authored by Lukas Holecek's avatar Lukas Holecek Committed by hjk

fakevim: <C-W> in insert mode stops deleting at end of previous line

Change-Id: I6733c0de42215b9cf2f662836e4e5956eab1c0e2
Reviewed-by: default avatarhjk <>
parent 6547845d
......@@ -4023,12 +4023,15 @@ EventResult FakeVimHandler::Private::handleInsertMode(const Input &input)
} else if (input.isControl('v')) {
m_ctrlVActive = true;
} else if (input.isControl('w')) {
int endPos = position();
const int blockNumber = cursor().blockNumber();
const int endPos = position();
moveToNextWordStart(count(), false, false);
int beginPos = position();
if (blockNumber != cursor().blockNumber())
const int beginPos = position();
Range range(beginPos, endPos, RangeCharMode);
} else if (input.isKey(Key_Insert)) {
m_mode = ReplaceMode;
} else if (input.isKey(Key_Left)) {
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