diff options
author | Doug Kearns <dougkearns@gmail.com> | 2008-12-10 17:21:52 +1100 |
---|---|---|
committer | Doug Kearns <dougkearns@gmail.com> | 2008-12-12 14:03:26 +1100 |
commit | dd737ad3c0eeb13268e4ecd23440c955b306c3ed (patch) | |
tree | 69d3992427f3fc1a6a23725b36b7ec2be9c0404c | |
parent | f5a8158d5f54dab7afd110ec0e7f2c5adf182413 (diff) | |
download | pentadactyl-dd737ad3c0eeb13268e4ecd23440c955b306c3ed.tar.gz |
use literalArg with :sidebar - this is debatable
-rw-r--r-- | vimperator/content/config.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vimperator/content/config.js b/vimperator/content/config.js index 14bbb092..e7e6de50 100644 --- a/vimperator/content/config.js +++ b/vimperator/content/config.js @@ -359,10 +359,10 @@ const config = { //{{{ "Open the sidebar window", function (args) { - args = args.string; + let arg = args.literalArg; // focus if the requested sidebar is already open - if (document.getElementById("sidebar-title").value == args) + if (document.getElementById("sidebar-title").value == arg) { document.getElementById("sidebar-box").focus(); return; @@ -372,14 +372,14 @@ const config = { //{{{ for (let [,panel] in Iterator(menu.childNodes)) { - if (panel.label == args) + if (panel.label == arg) { panel.doCommand(); return; } } - liberator.echoerr("No sidebar " + args + " found"); + liberator.echoerr("No sidebar " + arg + " found"); }, { argCount: "1", |