diff options
author | Kris Maglione <maglione.k@gmail.com> | 2008-12-08 10:00:23 -0500 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2008-12-08 10:00:23 -0500 |
commit | d1c6283bc15609f54c599a3e060c64d1f5aff057 (patch) | |
tree | 7181a935e8467834f21ef73a6f1806ec596ea4e1 /common/content | |
parent | 9fe3e53ce0bccc83bd7bed1df15367c1516a9287 (diff) | |
download | pentadactyl-d1c6283bc15609f54c599a3e060c64d1f5aff057.tar.gz |
Dont save empty history strings
Diffstat (limited to 'common/content')
-rw-r--r-- | common/content/ui.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/content/ui.js b/common/content/ui.js index d0ec7e2a..ee7071d1 100644 --- a/common/content/ui.js +++ b/common/content/ui.js @@ -91,6 +91,8 @@ function CommandLine() //{{{ save: function () { let str = this.input.value; + if (/^\s*$/.test(str)) + return; this.store.mutate('filter', function (line) line != str); this.store.push(str); this.store.truncate(options["history"], true); @@ -946,8 +948,6 @@ function CommandLine() //{{{ highlightGroup = highlightGroup || this.HL_NORMAL; - // liberator.dump(String(str)); - // try { liberator.dump(str.toXMLString()) } catch(e) {}; if (flags & this.APPEND_TO_MESSAGES) messageHistory.add({ str: str, highlight: highlightGroup }); |