mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 08:17:58 +01:00
display an error message if :buffers is given an argument
This commit is contained in:
@@ -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)",
|
||||
|
||||
Reference in New Issue
Block a user