don't lowercase the original line!
This commit is contained in:
parent
7c746ab9a3
commit
60247a6443
|
@ -435,7 +435,7 @@
|
|||
|
||||
openPopup(color) {
|
||||
let {line, ch} = this.cm.getCursor();
|
||||
const lineText = this.cm.getLine(line).toLowerCase();
|
||||
const lineText = this.cm.getLine(line);
|
||||
const lineTextLC = lineText.toLowerCase();
|
||||
const atImportant = lineTextLC.lastIndexOf('!important', ch);
|
||||
ch -= (atImportant >= Math.max(0, ch - '!important'.length)) ? '!important'.length : 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user