From e7e0ead0fc09488d375f99db0eced36124ae2ce0 Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Wed, 14 Jul 2010 17:59:48 +0200 Subject: [PATCH] fakevim: implement :only --- src/plugins/fakevim/fakevimplugin.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/fakevim/fakevimplugin.cpp b/src/plugins/fakevim/fakevimplugin.cpp index fc313bac387..10a7844d148 100644 --- a/src/plugins/fakevim/fakevimplugin.cpp +++ b/src/plugins/fakevim/fakevimplugin.cpp @@ -980,6 +980,9 @@ void FakeVimPluginPrivate::handleExCommand(bool *handled, const ExCommand &cmd) || cmd.cmd == "bN" || cmd.cmd == "bNext") { // :bp[revious] switchToFile(currentFile() - cmd.count); + } else if (cmd.cmd == "on" || cmd.cmd == "only") { + //triggerAction(Core::Constants::REMOVE_ALL_SPLITS); + triggerAction(Core::Constants::REMOVE_CURRENT_SPLIT); } else { // Check whether one of the configure commands matches. typedef CommandMap::const_iterator Iterator; -- GitLab