From 84af25f689f5b8f703c00e5d9563565ad039994c Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Fri, 26 Dec 2008 00:25:38 +0100 Subject: [PATCH] small correction for 'df' --- src/plugins/fakevim/handler.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/plugins/fakevim/handler.cpp b/src/plugins/fakevim/handler.cpp index d277fc02624..a3eef93f96d 100644 --- a/src/plugins/fakevim/handler.cpp +++ b/src/plugins/fakevim/handler.cpp @@ -624,8 +624,14 @@ void FakeVimHandler::Private::handleFfTt(int key) if (repeat == 0) { if (m_subsubdata == 't') --pos; - if (m_subsubdata == 'T') + else if (m_subsubdata == 'T') ++pos; + // FIXME: strange correction... + if (m_submode == DeleteSubMode && m_subsubdata == 'f') + ++pos; + if (m_submode == DeleteSubMode && m_subsubdata == 't') + ++pos; + if (forward) m_tc.movePosition(Right, KeepAnchor, pos - m_tc.position()); else -- GitLab