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
eb422394
Commit
eb422394
authored
Aug 18, 2009
by
hjk
Browse files
fakevim: make 'o' undo work in a single operation
parent
39e11137
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
eb422394
...
...
@@ -1406,6 +1406,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
search
(
lastSearchString
(),
!
m_lastSearchForward
);
recordJump
();
}
else
if
(
key
==
'o'
||
key
==
'O'
)
{
beginEditBlock
();
setDotCommand
(
"%1o"
,
count
());
enterInsertMode
();
moveToFirstNonBlankOnLine
();
...
...
@@ -1414,6 +1415,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
moveToEndOfLine
();
m_tc
.
insertText
(
"
\n
"
);
insertAutomaticIndentation
(
key
==
'o'
);
endEditBlock
();
}
else
if
(
key
==
control
(
'o'
))
{
if
(
!
m_jumpListUndo
.
isEmpty
())
{
m_jumpListRedo
.
append
(
cursorPosition
());
...
...
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