From 4e6932e44f892a4167912bd904ba396efe7f88a8 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Sun, 21 Apr 2013 01:39:19 -0400 Subject: [PATCH] Fix ChkTeX error reporting (#8639) ChkTeX errors from a previous run are now cleared from the error list if ChkTeX exits with no error. --- src/Buffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 01a72f2879..7f3773c0f3 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -1981,7 +1981,7 @@ int Buffer::runChktex() if (res == -1) { Alert::error(_("chktex failure"), _("Could not run chktex successfully.")); - } else if (res > 0) { + } else { ErrorList & errlist = d->errorLists["ChkTeX"]; errlist.clear(); bufferErrors(terr, errlist); -- 2.39.5