Commit e0f6d43b authored by hjk's avatar hjk
Browse files

fakevim: implement [( and ])

parent e99a380a
...@@ -1696,6 +1696,8 @@ EventResult FakeVimHandler::Private::handleOpenSquareSubMode(const Input &input) ...@@ -1696,6 +1696,8 @@ EventResult FakeVimHandler::Private::handleOpenSquareSubMode(const Input &input)
m_submode = NoSubMode; m_submode = NoSubMode;
if (input.is('{')) { if (input.is('{')) {
searchBalanced(false, '{', '}'); searchBalanced(false, '{', '}');
} else if (input.is('(')) {
searchBalanced(false, '(', ')');
} else { } else {
handled = EventUnhandled; handled = EventUnhandled;
} }
...@@ -1708,6 +1710,8 @@ EventResult FakeVimHandler::Private::handleCloseSquareSubMode(const Input &input ...@@ -1708,6 +1710,8 @@ EventResult FakeVimHandler::Private::handleCloseSquareSubMode(const Input &input
m_submode = NoSubMode; m_submode = NoSubMode;
if (input.is('}')) { if (input.is('}')) {
searchBalanced(true, '}', '{'); searchBalanced(true, '}', '{');
} else if (input.is(')')) {
searchBalanced(true, ')', '(');
} else { } else {
handled = EventUnhandled; handled = EventUnhandled;
} }
......
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