nano

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

commit 32719d64a10cc75d86b8194ecd194be3cc3d0b53
parent f4321250efb546966c3ee0632863a155d1f17b26
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Wed, 28 Dec 2016 12:02:15 +0100

locking: disable an annoying warning

The warning is wrong when the user has just saved a buffer under a
new name.  And when --quickblank is used, the warning most likely
gets cleared off before it is seen, and the user would just hear
the beep and be left wondering what happened.

This avoids https://savannah.gnu.org/bugs/?49875.

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

diff --git a/src/files.c b/src/files.c @@ -148,8 +148,9 @@ void set_modified(void) if (openfile->lock_filename == NULL) { /* TRANSLATORS: Keep the next ten messages at most 76 characters. */ - statusline(ALERT, _("Warning: Modifying a file which is not locked," - " check directory permission?")); +// statusline(ALERT, _("Warning: Modifying a file which is not locked," +// " check directory permission?")); + ; } else { char *fullname = get_full_path(openfile->filename); write_lockfile(openfile->lock_filename, fullname, TRUE);