From 6ec66f253f283bb5b828e342df79c0fa56aa6294 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 9 Dec 2008 01:13:23 +1100 Subject: [PATCH] use literalArg in :pagestyle action --- common/content/buffer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/content/buffer.js b/common/content/buffer.js index 8f409a50..03b86248 100644 --- a/common/content/buffer.js +++ b/common/content/buffer.js @@ -508,20 +508,20 @@ function Buffer() //{{{ "Select the author style sheet to apply", function (args) { - args = args.string; + let arg = args.literalArg; let titles = buffer.alternateStyleSheets.map(function (stylesheet) stylesheet.title); - if (args && titles.indexOf(args) == -1) + if (arg && titles.indexOf(arg) == -1) { - liberator.echoerr("E475: Invalid argument: " + args); + liberator.echoerr("E475: Invalid argument: " + arg); return; } if (options["usermode"]) options["usermode"] = false; - window.stylesheetSwitchAll(window.content, args); + window.stylesheetSwitchAll(window.content, arg); }, { argCount: "?",