From 6b782811934f3e15f521e40c042e748115126561 Mon Sep 17 00:00:00 2001 From: Martin Aumueller Date: Tue, 17 Feb 2009 00:50:05 +0100 Subject: [PATCH] fakevim: fix repetition for dh/j/k/l --- src/plugins/fakevim/fakevimhandler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/fakevim/fakevimhandler.cpp b/src/plugins/fakevim/fakevimhandler.cpp index fab1902f25e..5dc0eefcf0a 100644 --- a/src/plugins/fakevim/fakevimhandler.cpp +++ b/src/plugins/fakevim/fakevimhandler.cpp @@ -992,7 +992,7 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified, if (m_fakeEnd && m_tc.block().length() > 1) ++n; moveLeft(n); - finishMovement(); + finishMovement("h"); } else if (key == 'H') { m_tc = EDITOR(cursorForPosition(QPoint(0, 0))); moveDown(qMax(count() - 1, 0)); @@ -1029,7 +1029,7 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified, setAnchor(); moveDown(count() + 1); } - finishMovement(); + finishMovement("j"); m_desiredColumn = savedColumn; } else if (key == 'J') { recordBeginGroup(); @@ -1057,12 +1057,12 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified, setAnchor(); moveUp(count() + 1); } - finishMovement(); + finishMovement("k"); m_desiredColumn = savedColumn; } else if (key == 'l' || key == Key_Right || key == ' ') { m_moveType = MoveExclusive; moveRight(qMin(count(), rightDist())); - finishMovement(); + finishMovement("l"); } else if (key == 'L') { m_tc = EDITOR(cursorForPosition(QPoint(0, EDITOR(height())))); moveUp(qMax(count(), 1));