fix CSS linting in new CodeMirror

fixes #1317
This commit is contained in:
tophf 2021-08-17 22:03:10 +03:00
parent 6927fa5d70
commit c08747202a

View File

@ -79,7 +79,7 @@ const linterMan = (() => {
function getCachedAnnotations(code, opt, cm) {
const results = cms.get(cm);
cms.set(cm, null);
cm.options.lint.getAnnotations = getAnnotations;
cm.state.lint.options.getAnnotations = getAnnotations;
return results;
}