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:
hjk
2021-06-10 10:04:47 +02:00
parent 0e0cfcdcf2
commit e5dd24322f

View File

@@ -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