Revert "FakeVim: Also record NoVisualMode as last visual mode"

This reverts commit e5dd24322f
which caused QTCREATORBUG-26214.

Fixes: QTCREATORBUG-26214
Change-Id: I0d285b4df8fa428201fb6c48bbbad81f8195a941
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-06-23 10:20:07 +02:00
parent e78f456083
commit 7a76f7edbf

View File

@@ -8201,9 +8201,9 @@ void FakeVimHandler::Private::saveLastVisualMode()
if (isVisualMode() && g.mode == CommandMode && g.submode == NoSubMode) { if (isVisualMode() && g.mode == CommandMode && g.submode == NoSubMode) {
setMark('<', markLessPosition()); setMark('<', markLessPosition());
setMark('>', markGreaterPosition()); 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 QWidget *FakeVimHandler::Private::editor() const