Commit 210740c3 authored by hjk's avatar hjk
Browse files

fix small glitch in fakevim's 'L' handling

parent a01fa6c1
......@@ -305,7 +305,6 @@ void FakeVimHandler::Private::handleCommandMode(int key, const QString &text)
} else if (key == 'L') {
int heigth = m_editor->height();
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));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment