mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 10:07:19 +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';
|
std::cerr << "Error: " << problem << '\n';
|
||||||
|
|
||||||
// Preserve the edits.
|
File::remove (file.str());
|
||||||
before = after;
|
|
||||||
File::write (file.str (), before);
|
|
||||||
|
|
||||||
if (confirm ("Taskwarrior couldn't handle your edits. Would you like to try again?"))
|
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;
|
goto ARE_THESE_REALLY_HARMFUL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
changes = true;
|
changes = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue