Commit c22678ef authored by hjk's avatar hjk
Browse files

fakevim: don't import a selection if there wasn't one

parent 16f6fda5
......@@ -1020,7 +1020,9 @@ void FakeVimHandler::Private::importSelection()
m_marks['>'] = pos;
m_anchor = anc;
Qt::KeyboardModifiers mods = QApplication::keyboardModifiers();
if (mods & Qt::ControlModifier)
if (!tc.hasSelection())
m_visualMode = NoVisualMode;
else if (mods & Qt::ControlModifier)
m_visualMode = VisualBlockMode;
else if (mods & Qt::AltModifier)
m_visualMode = VisualBlockMode;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment