# HG changeset patch
# User Steve Losh <steve@stevelosh.com>
# Date 1251770895 14400
# Node ID 10bda210ef4a248e5285f3d3bbe2e2d9a45fd970
# Parent  fac6ee1db75f9a7553fd0ab50e25cc5f73ce70d5
Fix the disappearing finished tasks.

diff -r fac6ee1db75f -r 10bda210ef4a t.py
--- a/t.py	Fri Aug 28 21:30:12 2009 -0400
+++ b/t.py	Mon Aug 31 22:08:15 2009 -0400
@@ -144,7 +144,8 @@
         be raised.
         
         """
-        self.tasks.pop(self[prefix]['id'])
+        task = self.tasks.pop(self[prefix]['id'])
+        self.done[task['id']] = task
     
     def print_list(self, kind='tasks', verbose=False):
         """Print out a nicely formatted list of unfinished tasks."""