nano

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

commit e8e30e51972bfdf27dd171196f2ee80780e83247
parent 189de5ee781fd11230c0412719582aba6e207d55
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 12 Jun 2019 10:34:53 +0200

tweaks: elide an unneeded, duplicate stat() for the FIFO check

Diffstat:
Msrc/files.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/files.c b/src/files.c @@ -1815,7 +1815,7 @@ bool write_file(const char *name, FILE *f_open, bool tmp, } } - if (stat(realname, &st) == 0 && S_ISFIFO(st.st_mode)) + if (S_ISFIFO(st.st_mode)) statusbar(_("Writing to FIFO...")); #endif /* !NANO_TINY */