simplify code
This commit is contained in:
parent
7966ce5bd3
commit
ae2c53c2f0
|
@ -557,7 +557,7 @@
|
||||||
const palette = new Map();
|
const palette = new Map();
|
||||||
let i = 0;
|
let i = 0;
|
||||||
let nums;
|
let nums;
|
||||||
cm.doc.eachLine(({markedSpans}) => {
|
cm.eachLine(({markedSpans}) => {
|
||||||
++i;
|
++i;
|
||||||
if (!markedSpans) return;
|
if (!markedSpans) return;
|
||||||
for (const {from, marker: m} of markedSpans) {
|
for (const {from, marker: m} of markedSpans) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user