* edit.c (edit_clean): Remove stale lock if any.

This commit is contained in:
Pavel Roskin 2003-07-09 00:21:09 +00:00
parent 5ff5f8e9d1
commit 4b8f0b02b2
2 changed files with 8 additions and 0 deletions

View File

@ -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.

View File

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