Merge remote-tracking branch 'lenormf/patch-2'

This commit is contained in:
Maxime Coste 2019-11-28 20:32:16 +11:00
commit 085e7dd09e

View File

@ -830,7 +830,7 @@ const CommandDesc rename_buffer_cmd = {
[](const ParametersParser& parser, Context& context, const ShellContext&) [](const ParametersParser& parser, Context& context, const ShellContext&)
{ {
if (not context.buffer().set_name(parser[0])) if (not context.buffer().set_name(parser[0]))
throw runtime_error(format("unable to change buffer name to '{}'", parser[0])); throw runtime_error(format("unable to change buffer name to '{}': a buffer with this name already exists", parser[0]));
} }
}; };