Fix ChkTeX error reporting (#8639)

ChkTeX errors from a previous run are now cleared from the
error list if ChkTeX exits with no error.
This commit is contained in:
Scott Kostyshak 2013-04-21 01:39:19 -04:00
parent b75ecdfaf0
commit 4e6932e44f

View File

@ -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);