fixup f603d9b6: correctly apply 'highlight' selector
This commit is contained in:
parent
81e6720341
commit
73dc33d376
|
@ -307,7 +307,7 @@ function initCodeMirror() {
|
||||||
|
|
||||||
function acmeEventListener(event) {
|
function acmeEventListener(event) {
|
||||||
const el = event.target;
|
const el = event.target;
|
||||||
const option = el.id.replace(/^editor\./, '');
|
let option = el.id.replace(/^editor\./, '');
|
||||||
//console.log('acmeEventListener heard %s on %s', event.type, el.id);
|
//console.log('acmeEventListener heard %s on %s', event.type, el.id);
|
||||||
if (!option) {
|
if (!option) {
|
||||||
console.error('acmeEventListener: no "cm_option" %O', el);
|
console.error('acmeEventListener: no "cm_option" %O', el);
|
||||||
|
@ -366,6 +366,7 @@ function acmeEventListener(event) {
|
||||||
default:
|
default:
|
||||||
value = null;
|
value = null;
|
||||||
}
|
}
|
||||||
|
option = 'highlightSelectionMatches';
|
||||||
break;
|
break;
|
||||||
case 'linter':
|
case 'linter':
|
||||||
updateLinter(value);
|
updateLinter(value);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user