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
3ed146ae
Commit
3ed146ae
authored
Mar 18, 2010
by
hjk
Browse files
fakevim: code cosmetics
parent
4e578d95
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
3ed146ae
...
...
@@ -1690,7 +1690,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
m_movetype
=
MoveExclusive
;
setAnchor
();
bool
pastEnd
=
count
()
>=
rightDist
()
-
1
;
moveRight
(
qMax
(
0
,
qMin
(
count
(),
rightDist
()
-
(
m_submode
==
NoSubMode
))));
moveRight
(
qMax
(
0
,
qMin
(
count
(),
rightDist
()
-
(
m_submode
==
NoSubMode
))));
setTargetColumn
();
if
(
pastEnd
&&
isVisualMode
())
{
m_visualTargetColumn
=
-
1
;
...
...
@@ -1832,13 +1832,13 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
enterVisualMode
(
VisualBlockMode
);
}
else
if
(
key
==
'w'
)
{
// tested
// Special case: "cw" and "cW" work the same as "ce" and "cE" if the
// cursor is on a non-blank - except if the cursor is on the last
character of a word:
// only the current word will be changed
// cursor is on a non-blank - except if the cursor is on the last
//
character of a word:
only the current word will be changed
if
(
m_submode
==
ChangeSubMode
)
{
moveToWordBoundary
(
false
,
true
,
true
);
m_movetype
=
MoveInclusive
;
}
else
{
moveToNextWord
(
false
,
m_submode
==
DeleteSubMode
);
moveToNextWord
(
false
,
m_submode
==
DeleteSubMode
);
m_movetype
=
MoveExclusive
;
}
finishMovement
(
"%1w"
,
count
());
...
...
@@ -1847,7 +1847,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
moveToWordBoundary
(
true
,
true
,
true
);
m_movetype
=
MoveInclusive
;
}
else
{
moveToNextWord
(
true
,
m_submode
==
DeleteSubMode
);
moveToNextWord
(
true
,
m_submode
==
DeleteSubMode
);
m_movetype
=
MoveExclusive
;
}
finishMovement
(
"%1W"
,
count
());
...
...
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