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.
master
Benno Schulenberg 2020-01-29 19:32:19 +01:00
parent 4502295a34
commit 662e8b2d20
1 changed files with 0 additions and 3 deletions

View File

@ -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);