fakevim: when leaving visual mode, set move type to char or line according to visual mode

Merge-request: 99
Reviewed-by: hjk <qtc-committer@nokia.com>
This commit is contained in:
Martin Aumüller
2010-01-21 17:38:28 +01:00
committed by hjk
parent 5994044b64
commit 7a5891bd2a

View File

@@ -3210,6 +3210,11 @@ void FakeVimHandler::Private::enterVisualMode(VisualMode visualMode)
void FakeVimHandler::Private::leaveVisualMode()
{
if (isVisualLineMode())
m_movetype = MoveLineWise;
else if (isVisualCharMode())
m_movetype = MoveInclusive;
m_visualMode = NoVisualMode;
updateMiniBuffer();
updateSelection();