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
parent
e0c7ff2a7e
commit
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;
|
||||
|
|
Loading…
Reference in New Issue