forked from qt-creator/qt-creator
Fixes: fakevim: explicitly make 'l' an 'exclusive' motion
This commit is contained in:
@@ -2228,9 +2228,11 @@ static void qDumpStdMap(QDumper &d)
|
|||||||
if (isSimpleKey && isSimpleValue) {
|
if (isSimpleKey && isSimpleValue) {
|
||||||
P(d, "type", valueType);
|
P(d, "type", valueType);
|
||||||
P(d, "addr", addOffset(node, valueOffset));
|
P(d, "addr", addOffset(node, valueOffset));
|
||||||
|
P(d, "numchild", 0);
|
||||||
} else {
|
} else {
|
||||||
P(d, "addr", node);
|
P(d, "addr", node);
|
||||||
P(d, "type", pairType);
|
P(d, "type", pairType);
|
||||||
|
P(d, "numchild", 2);
|
||||||
}
|
}
|
||||||
d.endHash();
|
d.endHash();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -986,6 +986,7 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
|
|||||||
finishMovement();
|
finishMovement();
|
||||||
m_desiredColumn = savedColumn;
|
m_desiredColumn = savedColumn;
|
||||||
} else if (key == 'l' || key == Key_Right) {
|
} else if (key == 'l' || key == Key_Right) {
|
||||||
|
m_moveType = MoveExclusive;
|
||||||
moveRight(qMin(count(), rightDist()));
|
moveRight(qMin(count(), rightDist()));
|
||||||
finishMovement();
|
finishMovement();
|
||||||
} else if (key == 'L') {
|
} else if (key == 'L') {
|
||||||
@@ -1099,6 +1100,7 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
|
|||||||
moveToNextWord(true);
|
moveToNextWord(true);
|
||||||
finishMovement("W");
|
finishMovement("W");
|
||||||
} else if (key == 'x') { // = "dl"
|
} else if (key == 'x') { // = "dl"
|
||||||
|
m_moveType = MoveExclusive;
|
||||||
if (atEndOfLine())
|
if (atEndOfLine())
|
||||||
moveLeft();
|
moveLeft();
|
||||||
recordBeginGroup();
|
recordBeginGroup();
|
||||||
|
|||||||
Reference in New Issue
Block a user