forked from qt-creator/qt-creator
fakevim: looks like the Anchor concept needs a rework.
This commit is contained in:
@@ -975,7 +975,7 @@ void FakeVimHandler::Private::setAnchor()
|
|||||||
if (!isVisualMode()) {
|
if (!isVisualMode()) {
|
||||||
m_anchor = m_tc.position();
|
m_anchor = m_tc.position();
|
||||||
} else {
|
} else {
|
||||||
m_marks['<'] = m_tc.position();
|
// m_marks['<'] = m_tc.position();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4063,6 +4063,9 @@ void FakeVimHandler::Private::selectWordTextObject(bool inner)
|
|||||||
m_movetype = MoveExclusive;
|
m_movetype = MoveExclusive;
|
||||||
moveToWordBoundary(false, false, true);
|
moveToWordBoundary(false, false, true);
|
||||||
setAnchor();
|
setAnchor();
|
||||||
|
// FIXME: Rework the 'anchor' concept.
|
||||||
|
if (isVisualMode())
|
||||||
|
m_marks['<'] = m_tc.position();
|
||||||
moveToWordBoundary(false, true, true);
|
moveToWordBoundary(false, true, true);
|
||||||
m_movetype = MoveInclusive;
|
m_movetype = MoveInclusive;
|
||||||
}
|
}
|
||||||
@@ -4073,6 +4076,9 @@ void FakeVimHandler::Private::selectWORDTextObject(bool inner)
|
|||||||
m_movetype = MoveExclusive;
|
m_movetype = MoveExclusive;
|
||||||
moveToWordBoundary(true, false, true);
|
moveToWordBoundary(true, false, true);
|
||||||
setAnchor();
|
setAnchor();
|
||||||
|
// FIXME: Rework the 'anchor' concept.
|
||||||
|
if (isVisualMode())
|
||||||
|
m_marks['<'] = m_tc.position();
|
||||||
moveToWordBoundary(true, true, true);
|
moveToWordBoundary(true, true, true);
|
||||||
m_movetype = MoveInclusive;
|
m_movetype = MoveInclusive;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user