From dc30b0e6d6304405675344f3b15cb912f36d6ca9 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 18 Feb 2018 14:54:21 +1100 Subject: [PATCH] Do not support general commands in filter mode --- src/main.cc | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/main.cc b/src/main.cc index 40ef716d..39b40ebd 100644 --- a/src/main.cc +++ b/src/main.cc @@ -714,20 +714,17 @@ int run_server(StringView session, StringView server_init, return local_client_exit; } -int run_filter(StringView keystr, StringView commands, ConstArrayView files, bool quiet, StringView suffix_backup) +int run_filter(StringView keystr, ConstArrayView files, bool quiet, StringView suffix_backup) { StringRegistry string_registry; GlobalScope global_scope; EventManager event_manager; ShellManager shell_manager{builtin_env_vars}; - CommandManager command_manager; RegisterManager register_manager; - ClientManager client_manager; BufferManager buffer_manager; register_options(); register_registers(); - register_commands(); try { @@ -742,10 +739,6 @@ int run_filter(StringView keystr, StringView commands, ConstArrayView