Commit c3e1f044 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by hjk
Browse files

FakeVim: Fix conditions



Change-Id: I1787bd80124ebe224932e10be9e1e307c4925949
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent c5bf80d0
......@@ -2398,7 +2398,7 @@ EventResult FakeVimHandler::Private::handleEvent(QKeyEvent *ev)
const Qt::KeyboardModifiers mods = ev->modifiers();
if (key == Key_Shift || key == Key_Alt || key == Key_Control
|| key == Key_Alt || key == Key_AltGr || key == Key_Meta)
|| key == Key_AltGr || key == Key_Meta)
{
KEY_DEBUG("PLAIN MODIFIER");
return EventUnhandled;
......@@ -3638,7 +3638,7 @@ bool FakeVimHandler::Private::handleCommandSubSubMode(const Input &input)
.arg(input.text()));
}
}
} else if (g.subsubmode == OpenSquareSubSubMode || CloseSquareSubSubMode) {
} else if (g.subsubmode == OpenSquareSubSubMode || g.subsubmode == CloseSquareSubSubMode) {
int pos = position();
if (input.is('{') && g.subsubmode == OpenSquareSubSubMode)
searchBalanced(false, QLatin1Char('{'), QLatin1Char('}'));
......
Markdown is supported
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