nano

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

commit b2ea7d29d0b6a940e8f7828f20380aed162bb393
parent e597ad4908f8a2ca444d7a7dbe929cbd0f687aac
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 11 Aug 2020 20:10:40 +0200

build: fix compilation for --enable-tiny --enable-nanorc --enable-color

Diffstat:
Msrc/text.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/text.c b/src/text.c @@ -2105,9 +2105,11 @@ void treat(char *tempfile_name, char *theprogram, bool spelling) * there is nothing to do; otherwise, store its time of modification. */ if (stat(tempfile_name, &fileinfo) == 0) { if (fileinfo.st_size == 0) { +#ifndef NANO_TINY if (spelling && openfile->mark) statusline(ALERT, _("Selection is empty")); else +#endif statusbar(_("Buffer is empty")); return; } @@ -2925,7 +2927,9 @@ void do_formatter(void) return; } +#ifndef NANO_TINY openfile->mark = NULL; +#endif temp_name = safe_tempfile(&stream);