From 9697f61b0dbaa741724565c14bc738e1616adb96 Mon Sep 17 00:00:00 2001 From: Olivier Perret Date: Sat, 27 May 2017 23:38:27 +0200 Subject: [PATCH] Exclude debug from eval/exec over all buffers --- src/commands.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands.cc b/src/commands.cc index c32c29de..b9c205b8 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -1591,7 +1591,8 @@ void context_wrap(const ParametersParser& parser, Context& context, Func func) transform(std::mem_fn(&std::unique_ptr::get)); Vector> buffers{ptrs.begin(), ptrs.end()}; for (auto buffer : buffers) - context_wrap_for_buffer(*buffer); + if (not (buffer->flags() & Buffer::Flags::Debug)) + context_wrap_for_buffer(*buffer); } else for (auto& name : split(*bufnames, ','))