From 4b8f0b02b21c93d08a914c4900759a315165dbb4 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Wed, 9 Jul 2003 00:21:09 +0000 Subject: [PATCH] * edit.c (edit_clean): Remove stale lock if any. --- edit/ChangeLog | 4 ++++ edit/edit.c | 4 ++++ 2 files changed, 8 insertions(+) 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);