build: fix compilation for --enable-tiny --enable-nanorc --enable-color
Этот коммит содержится в:
родитель
e597ad4908
Коммит
b2ea7d29d0
@ -2105,9 +2105,11 @@ void treat(char *tempfile_name, char *theprogram, bool spelling)
|
|||||||
* there is nothing to do; otherwise, store its time of modification. */
|
* there is nothing to do; otherwise, store its time of modification. */
|
||||||
if (stat(tempfile_name, &fileinfo) == 0) {
|
if (stat(tempfile_name, &fileinfo) == 0) {
|
||||||
if (fileinfo.st_size == 0) {
|
if (fileinfo.st_size == 0) {
|
||||||
|
#ifndef NANO_TINY
|
||||||
if (spelling && openfile->mark)
|
if (spelling && openfile->mark)
|
||||||
statusline(ALERT, _("Selection is empty"));
|
statusline(ALERT, _("Selection is empty"));
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
statusbar(_("Buffer is empty"));
|
statusbar(_("Buffer is empty"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -2925,7 +2927,9 @@ void do_formatter(void)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NANO_TINY
|
||||||
openfile->mark = NULL;
|
openfile->mark = NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
temp_name = safe_tempfile(&stream);
|
temp_name = safe_tempfile(&stream);
|
||||||
|
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user