Commit 4243b562 authored by hjk's avatar hjk
Browse files

fakevim: ~ uses 'exclusive' motion

parent bc00f859
...@@ -2334,6 +2334,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(const Input &input) ...@@ -2334,6 +2334,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(const Input &input)
} else if (input.is('Z')) { } else if (input.is('Z')) {
m_submode = CapitalZSubMode; m_submode = CapitalZSubMode;
} else if (!m_gflag && input.is('~') && !isVisualMode()) { } else if (!m_gflag && input.is('~') && !isVisualMode()) {
m_movetype = MoveExclusive;
if (!atEndOfLine()) { if (!atEndOfLine()) {
beginEditBlock(); beginEditBlock();
setAnchor(); setAnchor();
...@@ -2355,6 +2356,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(const Input &input) ...@@ -2355,6 +2356,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(const Input &input)
|| (m_gflag && input.is('u') && !isVisualMode()) || (m_gflag && input.is('u') && !isVisualMode())
|| (m_gflag && input.is('U') && !isVisualMode())) { || (m_gflag && input.is('U') && !isVisualMode())) {
m_gflag = false; m_gflag = false;
m_movetype = MoveExclusive;
if (atEndOfLine()) if (atEndOfLine())
moveLeft(); moveLeft();
setAnchor(); setAnchor();
...@@ -2369,6 +2371,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(const Input &input) ...@@ -2369,6 +2371,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(const Input &input)
|| (m_gflag && input.is('u') && isVisualMode()) || (m_gflag && input.is('u') && isVisualMode())
|| (m_gflag && input.is('U') && isVisualMode())) { || (m_gflag && input.is('U') && isVisualMode())) {
m_gflag = false; m_gflag = false;
m_movetype = MoveExclusive;
if (isVisualLineMode()) if (isVisualLineMode())
m_rangemode = RangeLineMode; m_rangemode = RangeLineMode;
else if (isVisualBlockMode()) else if (isVisualBlockMode())
......
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