mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
* edit.c (edit_clean): Remove stale lock if any.
This commit is contained in:
parent
5ff5f8e9d1
commit
4b8f0b02b2
@ -1,3 +1,7 @@
|
||||
2003-07-08 Adam Byrtek <alpha@debian.org>
|
||||
|
||||
* edit.c (edit_clean): Remove stale lock if any.
|
||||
|
||||
2003-07-08 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* edit-widget.h: Add new field loading_done.
|
||||
|
@ -584,6 +584,10 @@ edit_clean (WEdit *edit)
|
||||
if (!edit)
|
||||
return 0;
|
||||
|
||||
/* a stale lock, remove it */
|
||||
if (edit->locked)
|
||||
edit->locked = edit_unlock_file (edit->filename);
|
||||
|
||||
/* save cursor position */
|
||||
if (option_save_position)
|
||||
edit_save_position (edit);
|
||||
|
Loading…
Reference in New Issue
Block a user