From 5cb9cf4cc38e1f171268aed471d1801a689db973 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 22 Jun 2016 19:57:21 +0100 Subject: [PATCH] Go back to saving built-in registers by default in non draft :exec/:eval --- src/commands.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/commands.cc b/src/commands.cc index e0019777..91d5dc79 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -1395,10 +1395,8 @@ void context_wrap(const ParametersParser& parser, Context& context, Func func) const bool no_hooks = parser.get_switch("no-hooks") or context.user_hooks_disabled(); const bool no_keymaps = not parser.get_switch("with-maps"); - const bool save_regs_by_default = (bool)parser.get_switch("draft") or - (bool)parser.get_switch("buffer"); Vector saved_registers; - for (auto& r : parser.get_switch("save-regs").value_or(save_regs_by_default ? "/\"|^@" : "")) + for (auto& r : parser.get_switch("save-regs").value_or("/\"|^@")) saved_registers.emplace_back(r, context); ClientManager& cm = ClientManager::instance();