mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
fix: remove lock file on interruption of 'task edit' (#2292)
This commit is contained in:
parent
663c6575ce
commit
098be0747d
1 changed files with 7 additions and 3 deletions
|
@ -826,12 +826,16 @@ ARE_THESE_REALLY_HARMFUL:
|
|||
{
|
||||
std::cerr << "Error: " << problem << '\n';
|
||||
|
||||
// Preserve the edits.
|
||||
before = after;
|
||||
File::write (file.str (), before);
|
||||
File::remove (file.str());
|
||||
|
||||
if (confirm ("Taskwarrior couldn't handle your edits. Would you like to try again?"))
|
||||
{
|
||||
// Preserve the edits.
|
||||
before = after;
|
||||
File::write (file.str (), before);
|
||||
|
||||
goto ARE_THESE_REALLY_HARMFUL;
|
||||
}
|
||||
}
|
||||
else
|
||||
changes = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue