Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
a17b57fa
Commit
a17b57fa
authored
Mar 12, 2009
by
hjk
Browse files
Fixes: fakevim: fix positioning after df<x>
Details: removes an old hack...
parent
e3eec1eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
a17b57fa
...
...
@@ -1078,8 +1078,13 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
m_moveType
=
MoveInclusive
;
moveToWordBoundary
(
true
,
true
);
finishMovement
();
}
else
if
(
key
==
'f'
||
key
==
'F'
)
{
}
else
if
(
key
==
'f'
)
{
m_subsubmode
=
FtSubSubMode
;
m_moveType
=
MoveInclusive
;
m_subsubdata
=
key
;
}
else
if
(
key
==
'F'
)
{
m_subsubmode
=
FtSubSubMode
;
m_moveType
=
MoveExclusive
;
m_subsubdata
=
key
;
}
else
if
(
key
==
'g'
)
{
if
(
m_gflag
)
{
...
...
@@ -1269,7 +1274,12 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
m_opcount
.
clear
();
m_mvcount
.
clear
();
enterInsertMode
();
}
else
if
(
key
==
't'
||
key
==
'T'
)
{
}
else
if
(
key
==
't'
)
{
m_moveType
=
MoveInclusive
;
m_subsubmode
=
FtSubSubMode
;
m_subsubdata
=
key
;
}
else
if
(
key
==
'T'
)
{
m_moveType
=
MoveExclusive
;
m_subsubmode
=
FtSubSubMode
;
m_subsubdata
=
key
;
}
else
if
(
key
==
'u'
)
{
...
...
@@ -1987,11 +1997,6 @@ void FakeVimHandler::Private::handleFfTt(int key)
--
pos
;
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
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment