nano

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

commit a71a2f9a0c72fd34cb7c8d9e2641193614af0923
parent 56ce5f2ba8e2e3e4d440dd9e03bc08cef883ad4b
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri, 23 Jun 2017 09:51:58 +0200

startup: don't mark the buffer as modified when nothing was read

Diffstat:
Msrc/nano.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/nano.c b/src/nano.c @@ -1176,7 +1176,10 @@ bool scoop_stdin(void) terminal_init(); doupdate(); - set_modified(); + + if (openfile->totsize > 0) + set_modified(); + return TRUE; }