tweaks: condense two statements into one, and elide a 'break'
Этот коммит содержится в:
родитель
07ddf25cc0
Коммит
6fb1509817
11
src/text.c
11
src/text.c
@ -3265,15 +3265,12 @@ void do_linter(void)
|
|||||||
|
|
||||||
if (stat(curlint->filename, &lintfileinfo) != -1 &&
|
if (stat(curlint->filename, &lintfileinfo) != -1 &&
|
||||||
openfile->current_stat->st_ino != lintfileinfo.st_ino) {
|
openfile->current_stat->st_ino != lintfileinfo.st_ino) {
|
||||||
openfilestruct *tmpof = openfile;
|
|
||||||
|
|
||||||
#ifdef ENABLE_MULTIBUFFER
|
#ifdef ENABLE_MULTIBUFFER
|
||||||
|
openfilestruct *tmpof = openfile->next;
|
||||||
|
|
||||||
|
while (tmpof != openfile &&
|
||||||
|
tmpof->current_stat->st_ino != lintfileinfo.st_ino)
|
||||||
tmpof = tmpof->next;
|
tmpof = tmpof->next;
|
||||||
while (tmpof != openfile) {
|
|
||||||
if (tmpof->current_stat->st_ino == lintfileinfo.st_ino)
|
|
||||||
break;
|
|
||||||
tmpof = tmpof->next;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (tmpof->current_stat->st_ino != lintfileinfo.st_ino) {
|
if (tmpof->current_stat->st_ino != lintfileinfo.st_ino) {
|
||||||
char *msg = charalloc(1024 + strlen(curlint->filename));
|
char *msg = charalloc(1024 + strlen(curlint->filename));
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user