Commit 12d1a184 authored by hluk's avatar hluk Committed by hjk

FakeVim: Focus current editor before handling command line command

Action like "Switch Header/Source" need to be performed in correct
context, in this case "CppEditor.C++Editor". But while command line is
focused the context is global.

Change-Id: Id9aa24641508a08f5196d314edc74644780c26d9
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 2d9343b2
......@@ -4376,6 +4376,7 @@ EventResult FakeVimHandler::Private::handleExMode(const Input &input)
// FIXME: Complete actual commands.
g.commandBuffer.historyUp();
} else if (input.isReturn()) {
editor()->focus();
showMessage(MessageCommand, g.commandBuffer.display());
handleExCommand(g.commandBuffer.contents());
g.commandBuffer.clear();
......
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