Complete rename-buffer with filenames

Fixes #3215
This commit is contained in:
Maxime Coste 2019-11-24 17:30:17 +11:00
parent 6fd486c65e
commit 6f087e899b

View File

@ -826,7 +826,7 @@ const CommandDesc rename_buffer_cmd = {
single_param,
CommandFlags::None,
CommandHelper{},
make_single_word_completer([](const Context& context){ return context.buffer().display_name(); }),
filename_completer<false>,
[](const ParametersParser& parser, Context& context, const ShellContext&)
{
if (not context.buffer().set_name(parser[0]))