forked from qt-creator/qt-creator
fix small glitch in fakevim's 'L' handling
This commit is contained in:
@@ -305,7 +305,6 @@ void FakeVimHandler::Private::handleCommandMode(int key, const QString &text)
|
|||||||
} else if (key == 'L') {
|
} else if (key == 'L') {
|
||||||
int heigth = m_editor->height();
|
int heigth = m_editor->height();
|
||||||
m_tc = m_editor->cursorForPosition(QPoint(0, heigth));
|
m_tc = m_editor->cursorForPosition(QPoint(0, heigth));
|
||||||
m_tc.movePosition(Up, KeepAnchor, qMax(count() - 1, 0));
|
|
||||||
m_tc.movePosition(Up, KeepAnchor, qMax(count(), 1));
|
m_tc.movePosition(Up, KeepAnchor, qMax(count(), 1));
|
||||||
moveToFirstNonBlankOnLine();
|
moveToFirstNonBlankOnLine();
|
||||||
finishMovement();
|
finishMovement();
|
||||||
|
|||||||
Reference in New Issue
Block a user