nano

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

commit 4cefd699cab643eac41c891c049c1f886cf1add1
parent 8eddf7bc269f5df5c33206f9a60efab3dabef678
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri, 17 Jul 2020 17:10:46 +0200

tweaks: shorten an error message, to be appropriate in all situations

Saying "Cannot write backup %s" is misleading when it is the original
file that cannot be reread.

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

diff --git a/src/files.c b/src/files.c @@ -1718,7 +1718,8 @@ bool make_backup_of(char *realname) return TRUE; } - statusline(HUSH, _("Cannot write backup %s: %s"), backupname, strerror(errno)); + /* TRANSLATORS: The %s is the reason of failure. */ + statusline(HUSH, _("Cannot make backup: %s"), strerror(errno)); free(backupname); return FALSE; }