summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2011-09-22 18:55:45 +0000
committerMaxime Coste <frrrwww@gmail.com>2011-09-22 18:55:45 +0000
commit5ca901644f98f88d9fcfd751d8d6ee580de0147d (patch)
treec45d3fc02bbb3f77f722e48c9e4ca6c0bf72788c /src/main.cc
parent429536d0f4a7c3cbb6f9c690c3d81ab4a25de581 (diff)
Completion: add complete_buffername completer
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc
index 00fb8749..dc69b056 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -402,7 +402,8 @@ int main(int argc, char* argv[])
command_manager.register_command(std::vector<std::string>{ "q", "quit" }, quit);
command_manager.register_command(std::vector<std::string>{ "w", "write" }, write_buffer,
PerArgumentCommandCompleter{ complete_filename });
- command_manager.register_command(std::vector<std::string>{ "b", "buffer" }, show_buffer);
+ command_manager.register_command(std::vector<std::string>{ "b", "buffer" }, show_buffer,
+ PerArgumentCommandCompleter { complete_buffername });
try
{