Skip to content
GitLab
Menu
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
153fd8a8
Commit
153fd8a8
authored
Jan 23, 2009
by
hjk
Browse files
Fixes: fakevim: 'w' broken again.
Details: exclusive motions seem to require extra thought
parent
0fe4e863
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
153fd8a8
...
...
@@ -480,6 +480,8 @@ void FakeVimHandler::Private::finishMovement(const QString &dotCommand)
m_mode
=
InsertMode
;
m_submode
=
NoSubMode
;
}
else
if
(
m_submode
==
DeleteSubMode
)
{
//if (m_moveType == MoveExclusive)
// moveLeft(); // correct
if
(
!
dotCommand
.
isEmpty
())
m_dotCommand
=
"d"
+
dotCommand
;
m_registers
[
m_register
]
=
recordRemoveSelectedText
();
...
...
@@ -504,10 +506,8 @@ void FakeVimHandler::Private::finishMovement(const QString &dotCommand)
m_tc
.
setPosition
(
startBlock
.
position
());
moveToFirstNonBlankOnLine
();
m_submode
=
NoSubMode
;
}
else
if
(
m_moveType
==
MoveExclusive
)
{
moveLeft
();
// correct
m_moveType
=
MoveInclusive
;
}
m_moveType
=
MoveInclusive
;
m_mvcount
.
clear
();
m_opcount
.
clear
();
m_gflag
=
false
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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