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.
Этот коммит содержится в:
родитель
4502295a34
Коммит
662e8b2d20
@ -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);
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user