forked from qt-creator/qt-creator
FakeVim: Also record NoVisualMode as last visual mode
Fixes: QTCREATORBUG-25822 Change-Id: I9a63726d357e3ea3d92b05a5d77cad5221c03f93 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -8196,9 +8196,9 @@ void FakeVimHandler::Private::saveLastVisualMode()
|
||||
if (isVisualMode() && g.mode == CommandMode && g.submode == NoSubMode) {
|
||||
setMark('<', markLessPosition());
|
||||
setMark('>', markGreaterPosition());
|
||||
m_buffer->lastVisualModeInverted = anchor() > position();
|
||||
m_buffer->lastVisualMode = g.visualMode;
|
||||
}
|
||||
m_buffer->lastVisualModeInverted = anchor() > position();
|
||||
m_buffer->lastVisualMode = g.visualMode;
|
||||
}
|
||||
|
||||
QWidget *FakeVimHandler::Private::editor() const
|
||||
|
Reference in New Issue
Block a user