nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 73d397c64b62dcda21092fb591e02025357cc0b8
parent e0c7ff2a7ebe94fc72e41797c36106eb3e77c220
Author: Marco Diego Aurélio Mesquita <address@hidden>
Date:   Wed, 23 May 2018 19:24:40 -0300

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>

Diffstat:
Msrc/text.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/text.c b/src/text.c @@ -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;