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
d8005df0
Commit
d8005df0
authored
Jan 27, 2009
by
hjk
Browse files
Fixes: fakevim: put text cut by 'X' into proper register
parent
1108d23c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
d8005df0
...
...
@@ -1072,10 +1072,6 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
m_subsubdata
=
key
;
}
else
if
(
key
==
'u'
)
{
undo
();
}
else
if
(
key
==
'U'
)
{
// FIXME: this is non-vim, but as Ctrl-R is taken globally
// we have a substitute here
redo
();
}
else
if
(
key
==
control
(
'u'
))
{
int
sline
=
cursorLineOnScreen
();
// FIXME: this should use the "scroll" option, and "count"
...
...
@@ -1113,7 +1109,7 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
if
(
leftDist
()
>
0
)
{
setAnchor
();
moveLeft
(
qMin
(
count
(),
leftDist
()));
recordRemoveSelectedText
();
m_registers
[
m_register
]
=
recordRemoveSelectedText
();
}
finishMovement
();
}
else
if
(
key
==
'y'
&&
m_visualMode
==
NoVisualMode
)
{
...
...
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