mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-24 23:35:45 +01:00
Fix status line highlighting.
This commit is contained in:
@@ -10,7 +10,8 @@
|
|||||||
|
|
||||||
const StatusLine = Module("statusline", {
|
const StatusLine = Module("statusline", {
|
||||||
init: function () {
|
init: function () {
|
||||||
this._statusBar = document.getElementById("addon-bar") || document.getElementById("status-bar");
|
this._statusLine = document.getElementById("status-bar");
|
||||||
|
this._statusBar = document.getElementById("addon-bar") || this._statusLine;
|
||||||
this._statusBar.collapsed = true; // it is later restored unless the user sets laststatus=0
|
this._statusBar.collapsed = true; // it is later restored unless the user sets laststatus=0
|
||||||
|
|
||||||
// our status bar fields
|
// our status bar fields
|
||||||
@@ -47,7 +48,7 @@ const StatusLine = Module("statusline", {
|
|||||||
insecure: "StatusLine"
|
insecure: "StatusLine"
|
||||||
};
|
};
|
||||||
|
|
||||||
highlight.highlightNode(this._statusBar, highlightGroup[type]);
|
highlight.highlightNode(this._statusLine, highlightGroup[type]);
|
||||||
},
|
},
|
||||||
|
|
||||||
// update all fields of the statusline
|
// update all fields of the statusline
|
||||||
|
|||||||
Reference in New Issue
Block a user