1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

Ensure error count is decrease when an error is fixed

This commit is contained in:
Raymond Hill 2023-04-04 16:55:47 -04:00
parent 767fcf9929
commit 028eee456f
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -752,6 +752,7 @@ CodeMirror.registerHelper('fold', 'ubo-static-filtering', (( ) => {
const marker = extractMarker(lineHandle);
if ( error === undefined && marker ) {
doc.setGutterMarker(lineHandle, 'CodeMirror-lintgutter', null);
deleteMarker();
} else if ( error !== undefined ) {
makeMarker(doc, lineHandle, marker, error);
}