1
1

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>
Этот коммит содержится в:
Marco Diego Aurélio Mesquita 2018-05-23 19:24:40 -03:00 коммит произвёл Benno Schulenberg
родитель e0c7ff2a7e
Коммит 73d397c64b

Просмотреть файл

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