1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-18 23:25:45 +01:00

Replace older values with :sty/:hi -append rather than simply concatenating the old string.

This commit is contained in:
Kris Maglione
2010-12-21 20:56:19 -05:00
parent 198a321c59
commit 362981e1b1
3 changed files with 39 additions and 21 deletions

View File

@@ -108,7 +108,7 @@ const Highlights = Module("Highlight", {
let highlight = this.highlight[key] || this._create(false, [key]);
if (append)
newStyle = (highlight.value || "").replace(/;?\s*$/, "; " + newStyle);
newStyle = Styles.append(highlight.value || "", newStyle);
if (/^\s*$/.test(newStyle))
newStyle = null;
if (newStyle == null) {