mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 18:02:27 +01:00
fix redeclaration of variable class in buffer.highlight
This commit is contained in:
@@ -1096,7 +1096,7 @@ liberator.Buffer = function () //{{{
|
|||||||
{
|
{
|
||||||
let [, class, selectors] = key.match(/^([a-zA-Z_-]+)(.*)/);
|
let [, class, selectors] = key.match(/^([a-zA-Z_-]+)(.*)/);
|
||||||
|
|
||||||
let class = highlightClasses.filter(function (i) i == class || i[0] == class)[0];
|
class = highlightClasses.filter(function (i) i == class || i[0] == class)[0];
|
||||||
if (!class)
|
if (!class)
|
||||||
{
|
{
|
||||||
liberator.echoerr("Unknown highlight keyword");
|
liberator.echoerr("Unknown highlight keyword");
|
||||||
|
|||||||
Reference in New Issue
Block a user