Commit 153fd8a8 authored by hjk's avatar hjk
Browse files

Fixes: fakevim: 'w' broken again.

    Details:  exclusive motions seem to require extra thought
parent 0fe4e863
...@@ -480,6 +480,8 @@ void FakeVimHandler::Private::finishMovement(const QString &dotCommand) ...@@ -480,6 +480,8 @@ void FakeVimHandler::Private::finishMovement(const QString &dotCommand)
m_mode = InsertMode; m_mode = InsertMode;
m_submode = NoSubMode; m_submode = NoSubMode;
} else if (m_submode == DeleteSubMode) { } else if (m_submode == DeleteSubMode) {
//if (m_moveType == MoveExclusive)
// moveLeft(); // correct
if (!dotCommand.isEmpty()) if (!dotCommand.isEmpty())
m_dotCommand = "d" + dotCommand; m_dotCommand = "d" + dotCommand;
m_registers[m_register] = recordRemoveSelectedText(); m_registers[m_register] = recordRemoveSelectedText();
...@@ -504,10 +506,8 @@ void FakeVimHandler::Private::finishMovement(const QString &dotCommand) ...@@ -504,10 +506,8 @@ void FakeVimHandler::Private::finishMovement(const QString &dotCommand)
m_tc.setPosition(startBlock.position()); m_tc.setPosition(startBlock.position());
moveToFirstNonBlankOnLine(); moveToFirstNonBlankOnLine();
m_submode = NoSubMode; m_submode = NoSubMode;
} else if (m_moveType == MoveExclusive) {
moveLeft(); // correct
m_moveType = MoveInclusive;
} }
m_moveType = MoveInclusive;
m_mvcount.clear(); m_mvcount.clear();
m_opcount.clear(); m_opcount.clear();
m_gflag = false; m_gflag = false;
......
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