From 02719ec4bfbe379c6b221bcc16b9186c1548670f Mon Sep 17 00:00:00 2001 From: Benno Schulenberg <bensberg@telfort.nl> Date: Sun, 25 Mar 2018 19:52:57 +0200 Subject: [PATCH] tweaks: fuse two ifs into one --- src/text.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/text.c b/src/text.c index d2ab6496..071041e0 100644 --- a/src/text.c +++ b/src/text.c @@ -3201,9 +3201,10 @@ void do_linter(void) #ifdef ENABLE_MULTIBUFFER struct stat lintfileinfo; - if (stat(curlint->filename, &lintfileinfo) != -1) { - if (openfile->current_stat->st_ino != lintfileinfo.st_ino) { + if (stat(curlint->filename, &lintfileinfo) != -1 && + openfile->current_stat->st_ino != lintfileinfo.st_ino) { openfilestruct *tmpof = openfile; + while (tmpof != openfile->next) { if (tmpof->current_stat->st_ino == lintfileinfo.st_ino) break; @@ -3260,7 +3261,6 @@ void do_linter(void) } } else openfile = tmpof; - } } #endif /* ENABLE_MULTIBUFFER */ -- GitLab