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
695aa639
Commit
695aa639
authored
Jan 22, 2009
by
hjk
Browse files
Fixes: fakevim: fix undo behaviour for Key_Delete
Details: was not recorded onh the undo stck
parent
592560b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
695aa639
...
...
@@ -634,7 +634,7 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
finishMovement
(
"y"
);
}
else
if
(
m_submode
==
ReplaceSubMode
)
{
if
(
atEol
())
moveLeft
(
KeepAnchor
);
moveLeft
();
else
m_tc
.
deleteChar
();
recordInsertText
(
text
);
...
...
@@ -1019,7 +1019,9 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
moveUp
(
count
()
*
(
linesOnScreen
()
-
2
));
finishMovement
();
}
else
if
(
key
==
Key_Delete
)
{
m_tc
.
deleteChar
();
setAnchor
();
moveRight
(
qMin
(
1
,
rightDist
()));
recordRemoveSelectedText
();
}
else
if
(
key
==
Key_Escape
)
{
if
(
m_visualMode
!=
NoVisualMode
)
leaveVisualMode
();
...
...
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