From 0d56dac3ac4f555a4374f6dbaef9efe639e8de71 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 28 Sep 2010 18:36:00 +1000 Subject: [PATCH] Fix output of :let when no variables are defined. --- common/content/options.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/content/options.js b/common/content/options.js index d9acee9e..95263f57 100644 --- a/common/content/options.js +++ b/common/content/options.js @@ -1224,10 +1224,10 @@ const Options = Module("options", { }) } ; - if (str.*.length()) - dactyl.echo(str, commandline.FORCE_MULTILINE); - else + if (str.text().length() == str.*.length()) dactyl.echomsg("No variables found"); + else + dactyl.echo(str, commandline.FORCE_MULTILINE); return; }