From 7c4d7ec8c27f3c5ff4e43d257783ac6133d4efa3 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sat, 6 Oct 2007 02:10:07 +0000 Subject: [PATCH] display an error message if :buffers is given an argument --- content/commands.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/content/commands.js b/content/commands.js index 306030c7..4078061a 100644 --- a/content/commands.js +++ b/content/commands.js @@ -357,7 +357,16 @@ function Commands() //{{{ } )); addDefaultCommand(new Command(["buffers", "files", "ls", "tabs"], - function(args, special) { vimperator.buffer.list(special); }, + function(args, special) + { + if (args) + { + vimperator.echoerr("E488: Trailing characters"); + return; + } + + vimperator.buffer.list(special); + }, { usage: ["buffers[!]"], short_help: "Show a list of all buffers (=tabs)",