Merge remote-tracking branch 'lenormf/patch-2'
This commit is contained in:
commit
085e7dd09e
|
@ -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]));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user