forked from qt-creator/qt-creator
fakevim: fix access to ConfigStartOfLine
This commit is contained in:
@@ -726,7 +726,7 @@ bool FakeVimHandler::Private::handleCommandMode(int key, const QString &text)
|
|||||||
} else if (key == 'G') {
|
} else if (key == 'G') {
|
||||||
int n = m_mvcount.isEmpty() ? linesInDocument() : count();
|
int n = m_mvcount.isEmpty() ? linesInDocument() : count();
|
||||||
m_tc.setPosition(positionForLine(n), KeepAnchor);
|
m_tc.setPosition(positionForLine(n), KeepAnchor);
|
||||||
if (m_config.contains(ConfigStartOfLine))
|
if (m_config[ConfigStartOfLine] == ConfigOn)
|
||||||
moveToFirstNonBlankOnLine();
|
moveToFirstNonBlankOnLine();
|
||||||
finishMovement();
|
finishMovement();
|
||||||
} else if (key == 'h' || key == Key_Left) {
|
} else if (key == 'h' || key == Key_Left) {
|
||||||
|
|||||||
Reference in New Issue
Block a user