forked from qt-creator/qt-creator
Fixes: fakevim: put text cut by 'X' into proper register
This commit is contained in:
@@ -1072,10 +1072,6 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
|
|||||||
m_subsubdata = key;
|
m_subsubdata = key;
|
||||||
} else if (key == 'u') {
|
} else if (key == 'u') {
|
||||||
undo();
|
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')) {
|
} else if (key == control('u')) {
|
||||||
int sline = cursorLineOnScreen();
|
int sline = cursorLineOnScreen();
|
||||||
// FIXME: this should use the "scroll" option, and "count"
|
// FIXME: this should use the "scroll" option, and "count"
|
||||||
@@ -1113,7 +1109,7 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
|
|||||||
if (leftDist() > 0) {
|
if (leftDist() > 0) {
|
||||||
setAnchor();
|
setAnchor();
|
||||||
moveLeft(qMin(count(), leftDist()));
|
moveLeft(qMin(count(), leftDist()));
|
||||||
recordRemoveSelectedText();
|
m_registers[m_register] = recordRemoveSelectedText();
|
||||||
}
|
}
|
||||||
finishMovement();
|
finishMovement();
|
||||||
} else if (key == 'y' && m_visualMode == NoVisualMode) {
|
} else if (key == 'y' && m_visualMode == NoVisualMode) {
|
||||||
|
Reference in New Issue
Block a user