forked from qt-creator/qt-creator
fakevim: implement gm
Change-Id: I27d69414aff355dea1cf334830145dc50d407851 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -2467,7 +2467,14 @@ EventResult FakeVimHandler::Private::handleCommandMode2(const Input &input)
|
|||||||
} else if (input.isControl('l')) {
|
} else if (input.isControl('l')) {
|
||||||
// screen redraw. should not be needed
|
// screen redraw. should not be needed
|
||||||
} else if (input.is('m')) {
|
} else if (input.is('m')) {
|
||||||
|
if (m_gflag) {
|
||||||
|
moveToStartOfLine();
|
||||||
|
moveRight(qMin(columnsOnScreen() / 2, rightDist()) - 1);
|
||||||
|
setTargetColumn();
|
||||||
|
finishMovement();
|
||||||
|
} else {
|
||||||
m_subsubmode = MarkSubSubMode;
|
m_subsubmode = MarkSubSubMode;
|
||||||
|
}
|
||||||
} else if (input.is('M')) {
|
} else if (input.is('M')) {
|
||||||
QTextCursor tc = EDITOR(cursorForPosition(QPoint(0, EDITOR(height()) / 2)));
|
QTextCursor tc = EDITOR(cursorForPosition(QPoint(0, EDITOR(height()) / 2)));
|
||||||
setCursor(tc);
|
setCursor(tc);
|
||||||
|
|||||||
Reference in New Issue
Block a user