mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 13:07:57 +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"],
|
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[!]"],
|
usage: ["buffers[!]"],
|
||||||
short_help: "Show a list of all buffers (=tabs)",
|
short_help: "Show a list of all buffers (=tabs)",
|
||||||
|
|||||||
Reference in New Issue
Block a user