forked from qt-creator/qt-creator
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:
@@ -2209,7 +2209,7 @@ EventResult FakeVimHandler::Private::handleCommandMode1(const Input &input)
|
||||
if (isNoVisualMode()) {
|
||||
m_submode = ShiftLeftSubMode;
|
||||
} else {
|
||||
shiftRegionLeft(1);
|
||||
shiftRegionLeft(count());
|
||||
leaveVisualMode();
|
||||
}
|
||||
} else if (input.is('>')) {
|
||||
@@ -2217,7 +2217,7 @@ EventResult FakeVimHandler::Private::handleCommandMode1(const Input &input)
|
||||
if (isNoVisualMode()) {
|
||||
m_submode = ShiftRightSubMode;
|
||||
} else {
|
||||
shiftRegionRight(1);
|
||||
shiftRegionRight(count());
|
||||
leaveVisualMode();
|
||||
}
|
||||
} else if (input.is('=')) {
|
||||
|
||||
Reference in New Issue
Block a user