Exclude debug from eval/exec over all buffers

This commit is contained in:
Olivier Perret 2017-05-27 23:38:27 +02:00
parent 55d1d1020d
commit 9697f61b0d

View File

@ -1591,7 +1591,8 @@ void context_wrap(const ParametersParser& parser, Context& context, Func func)
transform(std::mem_fn(&std::unique_ptr<Buffer>::get));
Vector<SafePtr<Buffer>> 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, ','))