fakevim: respect count for < and > in visual mode

Task-number: QTCREATORBUG-7250
Change-Id: I80041c0e902df5274a37a821cd93f036fde9514e
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2012-04-11 08:38:05 +02:00
committed by hjk
parent f220a55991
commit 88204e9723

View File

@@ -2209,7 +2209,7 @@ EventResult FakeVimHandler::Private::handleCommandMode1(const Input &input)
if (isNoVisualMode()) { if (isNoVisualMode()) {
m_submode = ShiftLeftSubMode; m_submode = ShiftLeftSubMode;
} else { } else {
shiftRegionLeft(1); shiftRegionLeft(count());
leaveVisualMode(); leaveVisualMode();
} }
} else if (input.is('>')) { } else if (input.is('>')) {
@@ -2217,7 +2217,7 @@ EventResult FakeVimHandler::Private::handleCommandMode1(const Input &input)
if (isNoVisualMode()) { if (isNoVisualMode()) {
m_submode = ShiftRightSubMode; m_submode = ShiftRightSubMode;
} else { } else {
shiftRegionRight(1); shiftRegionRight(count());
leaveVisualMode(); leaveVisualMode();
} }
} else if (input.is('=')) { } else if (input.is('=')) {