nano

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

commit e8f90789e9e05165c568a25a6bee93e7618bb803
parent c830b8f51cfbde34b322f626cfbf64d9b9dbaf53
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Tue, 16 May 2017 20:00:42 +0200

tweaks: exclude from the tiny version two messages that will never occur

Diffstat:
Msrc/files.c | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/files.c b/src/files.c @@ -2127,11 +2127,12 @@ int do_writeout(bool exiting) msg = (method == PREPEND) ? _("Prepend Selection to File") : (method == APPEND) ? _("Append Selection to File") : _("Write Selection to File"); + else if (method != OVERWRITE) + msg = (method == PREPEND) ? _("File Name to Prepend to") : + _("File Name to Append to"); else #endif /* !NANO_TINY */ - msg = (method == PREPEND) ? _("File Name to Prepend to") : - (method == APPEND) ? _("File Name to Append to") : - _("File Name to Write"); + msg = _("File Name to Write"); present_path = mallocstrcpy(present_path, "./");