Commit 95cacf5c authored by hjk's avatar hjk
Browse files

fakevim: looks like the Anchor concept needs a rework.

parent 7f0d4ea5
......@@ -975,7 +975,7 @@ void FakeVimHandler::Private::setAnchor()
if (!isVisualMode()) {
m_anchor = m_tc.position();
} else {
m_marks['<'] = m_tc.position();
// m_marks['<'] = m_tc.position();
}
}
......@@ -4063,6 +4063,9 @@ void FakeVimHandler::Private::selectWordTextObject(bool inner)
m_movetype = MoveExclusive;
moveToWordBoundary(false, false, true);
setAnchor();
// FIXME: Rework the 'anchor' concept.
if (isVisualMode())
m_marks['<'] = m_tc.position();
moveToWordBoundary(false, true, true);
m_movetype = MoveInclusive;
}
......@@ -4073,6 +4076,9 @@ void FakeVimHandler::Private::selectWORDTextObject(bool inner)
m_movetype = MoveExclusive;
moveToWordBoundary(true, false, true);
setAnchor();
// FIXME: Rework the 'anchor' concept.
if (isVisualMode())
m_marks['<'] = m_tc.position();
moveToWordBoundary(true, true, true);
m_movetype = MoveInclusive;
}
......
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