From dd737ad3c0eeb13268e4ecd23440c955b306c3ed Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Wed, 10 Dec 2008 17:21:52 +1100 Subject: [PATCH] use literalArg with :sidebar - this is debatable --- vimperator/content/config.js | 8 ++++---- 1 file 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",