forked from qt-creator/qt-creator
FakeVim: Dot command works for letter case commands in visual mode
Change-Id: I303c464c0ca2fb01f4a951d3fe7b6796f31d0ab2 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -4219,7 +4219,9 @@ bool FakeVimHandler::Private::handleNoSubMode(const Input &input)
|
||||
g.submode = CapitalZSubMode;
|
||||
} else if ((input.is('~') || input.is('u') || input.is('U'))) {
|
||||
g.movetype = MoveExclusive;
|
||||
pushUndoState();
|
||||
if (isVisualMode()) {
|
||||
setDotCommand(visualDotCommand() + QString::number(count()) + input.raw());
|
||||
if (isVisualLineMode())
|
||||
g.rangemode = RangeLineMode;
|
||||
else if (isVisualBlockMode())
|
||||
@@ -4233,7 +4235,6 @@ bool FakeVimHandler::Private::handleNoSubMode(const Input &input)
|
||||
g.submode = UpCaseSubMode;
|
||||
finishMovement();
|
||||
} else if (g.gflag || (input.is('~') && hasConfig(ConfigTildeOp))) {
|
||||
pushUndoState();
|
||||
if (atEndOfLine())
|
||||
moveLeft();
|
||||
setAnchor();
|
||||
|
||||
Reference in New Issue
Block a user