linter: check all open buffers, instead of just the next one

First step to the next buffer, and then iterate until we either
find a match or are back at the buffer where we started.

This fixes https://savannah.gnu.org/bugs/?53970.

Signed-off-by: Marco Diego Aurélio Mesquita <address@hidden>
master
Marco Diego Aurélio Mesquita 2018-05-23 19:24:40 -03:00 committed by Benno Schulenberg
parent e0c7ff2a7e
commit 73d397c64b
1 changed files with 2 additions and 1 deletions

View File

@ -3268,7 +3268,8 @@ void do_linter(void)
openfilestruct *tmpof = openfile;
#ifdef ENABLE_MULTIBUFFER
while (tmpof != openfile->next) {
tmpof = tmpof->next;
while (tmpof != openfile) {
if (tmpof->current_stat->st_ino == lintfileinfo.st_ino)
break;
tmpof = tmpof->next;