Skip to content

Commit

Permalink
Fix undefined cmdLine exception (external editors) not sure when this…
Browse files Browse the repository at this point in the history
… problem has been introduced.
  • Loading branch information
janodvarko committed Jul 10, 2012
1 parent 0189942 commit 366651d
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -398,6 +398,8 @@ Firebug.ExternalEditors = Obj.extend(Firebug.Module,

parseCmdLine: function(cmdLine, options)
{
cmdLine = cmdLine || "";

var lastI = 0, args = [], argIndex = 0, inGroup;
var subs = "col|line|file|url".split("|");

Expand Down Expand Up @@ -456,6 +458,7 @@ Firebug.ExternalEditors = Obj.extend(Firebug.Module,
});

cmdLine = args.join("");

// add %file
if (!/%(url|file)/.test(cmdLine))
cmdLine += " %file";
Expand All @@ -472,6 +475,7 @@ Firebug.ExternalEditors = Obj.extend(Firebug.Module,
return options[b];
});
})

return args;
},

Expand Down

0 comments on commit 366651d

Please sign in to comment.