1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 10:57:59 +01:00

display an error message if :buffers is given an argument

This commit is contained in:
Doug Kearns
2007-10-06 02:10:07 +00:00
parent 0a218107ce
commit 7c4d7ec8c2

View File

@@ -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)",