From 95cacf5c429f3c8e41b25672541cb9fd57dde5f9 Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Mon, 19 Apr 2010 15:36:00 +0200 Subject: [PATCH] fakevim: looks like the Anchor concept needs a rework. --- src/plugins/fakevim/fakevimhandler.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/plugins/fakevim/fakevimhandler.cpp b/src/plugins/fakevim/fakevimhandler.cpp index d4325e032a1..29d24200247 100644 --- a/src/plugins/fakevim/fakevimhandler.cpp +++ b/src/plugins/fakevim/fakevimhandler.cpp @@ -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; } -- GitLab