1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 18:07:58 +01:00

some trivial formatting fixes

This commit is contained in:
Doug Kearns
2007-08-14 15:24:49 +00:00
parent 96b3fe093a
commit 9f79ec4d71
9 changed files with 47 additions and 26 deletions

View File

@@ -556,8 +556,14 @@ function Commands() //{{{
{
vimperator.commandline.inputMultiline(new RegExp("^" + matches[2] + "$", "m"),
function(code) {
try { eval(matches[1] + "\n" + code); }
catch (e) { vimperator.echoerr(e.name + ": " + e.message); }
try
{
eval(matches[1] + "\n" + code);
}
catch (e)
{
vimperator.echoerr(e.name + ": " + e.message);
}
});
}
else // single line javascript code
@@ -654,11 +660,13 @@ function Commands() //{{{
addDefaultCommand(new Command(["ma[rk]"],
function(args)
{
if (!args) {
if (!args)
{
vimperator.echoerr("E471: Argument required");
return;
}
if (args.length > 1) {
if (args.length > 1)
{
vimperator.echoerr("E488: Trailing characters");
return;
}
@@ -823,7 +831,8 @@ function Commands() //{{{
addDefaultCommand(new Command(["qma[rk]"],
function(args)
{
if (!args) {
if (!args)
{
vimperator.echoerr("E471: Argument required");
return;
}