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
parent
4502295a34
commit
662e8b2d20
|
@ -142,9 +142,6 @@ void set_modified(void)
|
||||||
titlebar(NULL);
|
titlebar(NULL);
|
||||||
|
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
if (!ISSET(LOCKING) || ISSET(VIEW_MODE) || openfile->filename[0] == '\0')
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (openfile->lock_filename != NULL) {
|
if (openfile->lock_filename != NULL) {
|
||||||
char *fullname = get_full_path(openfile->filename);
|
char *fullname = get_full_path(openfile->filename);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue