diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-06-22 19:57:21 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-06-22 19:57:21 +0100 |
| commit | 5cb9cf4cc38e1f171268aed471d1801a689db973 (patch) | |
| tree | 67c9957d3aaa76ed4b6dfb4603292c65e65b09ee /src | |
| parent | 532ae5a1a672eb225e5c0a72e6b4fbc978f5b6d7 (diff) | |
Go back to saving built-in registers by default in non draft :exec/:eval
Diffstat (limited to 'src')
| -rw-r--r-- | src/commands.cc | 4 |
1 files changed, 1 insertions, 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<RegisterRestorer> 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(); |
