summaryrefslogtreecommitdiff
path: root/src/plugins/fakevim
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2009-01-27 16:28:42 +0100
committerhjk <qtc-committer@nokia.com>2009-01-27 16:28:42 +0100
commitd8005df09a94783def1597000a20be1574a475be (patch)
treec9d97c9c197892a6ec488dbd4e06b13b76f47a36 /src/plugins/fakevim
parent1108d23cf43760ac97213cc4dcfa450ca46b4e23 (diff)
downloadqt-creator-d8005df09a94783def1597000a20be1574a475be.tar.gz
Fixes: fakevim: put text cut by 'X' into proper register
Diffstat (limited to 'src/plugins/fakevim')
-rw-r--r--src/plugins/fakevim/fakevimhandler.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/plugins/fakevim/fakevimhandler.cpp b/src/plugins/fakevim/fakevimhandler.cpp
index 261c5f151c..f20c9522db 100644
--- a/src/plugins/fakevim/fakevimhandler.cpp
+++ b/src/plugins/fakevim/fakevimhandler.cpp
@@ -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) {