fix glitching on highlighting of current token

This commit is contained in:
tophf 2017-11-22 02:51:06 +03:00
parent 7bae73bcb4
commit 2c82cc3bbc

View File

@ -176,6 +176,7 @@
if (el.colorpickerData && el.colorpickerData.color === data.color) { if (el.colorpickerData && el.colorpickerData.color === data.color) {
continue; continue;
} }
el.dataset.colorpicker = '';
el.colorpickerData = Object.assign({line, ch: start}, data); el.colorpickerData = Object.assign({line, ch: start}, data);
let bg = el.firstElementChild; let bg = el.firstElementChild;
if (!bg) { if (!bg) {