nano

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

commit 662e8b2d20f24750ec66aa379a9f05233aba45b1
parent 4502295a347bfb7b98c734417eec99423028077f
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 29 Jan 2020 19:32:19 +0100

tweaks: remove some superfluous conditions for rewriting a lock file

A lock file needs to be rewritten (with the modified flag) only when the
relevant lock file already exists.  All other conditions are redundant.

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

diff --git a/src/files.c b/src/files.c @@ -142,9 +142,6 @@ void set_modified(void) titlebar(NULL); #ifndef NANO_TINY - if (!ISSET(LOCKING) || ISSET(VIEW_MODE) || openfile->filename[0] == '\0') - return; - if (openfile->lock_filename != NULL) { char *fullname = get_full_path(openfile->filename);