mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 14:27:59 +01:00
fixes:
'tag' command works once more 'source ~/' shows the matches fdopen checks whether the file exists, and throws a more-readable error if it doesn't 'help' work if the current document is a XULDocument (it shows the help in a new tab)
This commit is contained in:
@@ -356,7 +356,7 @@ var g_commands = [/*{{{*/
|
||||
["tab"],
|
||||
["tab {cmd}"],
|
||||
"Execute {cmd} and tell it to output in a new tab",
|
||||
"Works for only commands that support it.",
|
||||
"Works for only commands that support it.<br/>" +
|
||||
"Example: <code class=command>:tab help tab</code> opens the help in a new tab.",
|
||||
tab,
|
||||
null
|
||||
@@ -1914,9 +1914,11 @@ function set(args, special)
|
||||
|
||||
function source(filename, silent)
|
||||
{
|
||||
if (!filename) return;
|
||||
try
|
||||
{
|
||||
var fd = fopen(filename, "<");
|
||||
if (!fd) return;
|
||||
var s = fd.read();
|
||||
fd.close();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user