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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user