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:
hluk
2013-10-04 15:49:37 +02:00
committed by hjk
parent a1072b10c4
commit 9e4dabc884
2 changed files with 15 additions and 1 deletions

View File

@@ -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();