summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2019-11-24 17:30:17 +1100
committerMaxime Coste <mawww@kakoune.org>2019-11-24 18:11:29 +1100
commit6f087e899b4d44cf2bc8b73e30b2f1a0f07f0d0f (patch)
tree825fb39df868aa82cd29bc4a81302840894ee13d /src
parent6fd486c65e74d744c282a996e04beae42ca684d1 (diff)
Complete rename-buffer with filenames
Fixes #3215
Diffstat (limited to 'src')
-rw-r--r--src/commands.cc2
1 files changed, 1 insertions, 1 deletions
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<false>,
[](const ParametersParser& parser, Context& context, const ShellContext&)
{
if (not context.buffer().set_name(parser[0]))