mirror of https://github.com/gorhill/uBlock.git
Ensure error count is decrease when an error is fixed
This commit is contained in:
parent
767fcf9929
commit
028eee456f
|
@ -752,6 +752,7 @@ CodeMirror.registerHelper('fold', 'ubo-static-filtering', (( ) => {
|
||||||
const marker = extractMarker(lineHandle);
|
const marker = extractMarker(lineHandle);
|
||||||
if ( error === undefined && marker ) {
|
if ( error === undefined && marker ) {
|
||||||
doc.setGutterMarker(lineHandle, 'CodeMirror-lintgutter', null);
|
doc.setGutterMarker(lineHandle, 'CodeMirror-lintgutter', null);
|
||||||
|
deleteMarker();
|
||||||
} else if ( error !== undefined ) {
|
} else if ( error !== undefined ) {
|
||||||
makeMarker(doc, lineHandle, marker, error);
|
makeMarker(doc, lineHandle, marker, error);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue