From 8afbbd90d1dfe0efde6e8b04c9489ab7e9fc05ef Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sat, 6 Oct 2007 13:17:57 +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 bac54358..dfe6db40 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)",