diff --git a/edit/ChangeLog b/edit/ChangeLog index 37e4f67ea..6123b3429 100644 --- a/edit/ChangeLog +++ b/edit/ChangeLog @@ -1,3 +1,7 @@ +2003-07-08 Adam Byrtek + + * edit.c (edit_clean): Remove stale lock if any. + 2003-07-08 Pavel Roskin * edit-widget.h: Add new field loading_done. diff --git a/edit/edit.c b/edit/edit.c index 75420bb4a..9916086b6 100644 --- a/edit/edit.c +++ b/edit/edit.c @@ -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);