From 6f087e899b4d44cf2bc8b73e30b2f1a0f07f0d0f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 24 Nov 2019 17:30:17 +1100 Subject: [PATCH] Complete rename-buffer with filenames Fixes #3215 --- src/commands.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.cc b/src/commands.cc index 8fe38134..056e7017 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -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, [](const ParametersParser& parser, Context& context, const ShellContext&) { if (not context.buffer().set_name(parser[0]))