summaryrefslogtreecommitdiff
path: root/alot/ui.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2013-03-06 19:40:57 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2013-03-06 19:43:40 +0000
commit287286ee1aa9d1a34d5a0d765f0bb706bdf8d6ee (patch)
treee88e532d1335c11a418da03408b4d19c19bfdff0 /alot/ui.py
parent7eb08e722287c36fe31027dfabd11b385763ca51 (diff)
fix #577
Diffstat (limited to 'alot/ui.py')
-rw-r--r--alot/ui.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/alot/ui.py b/alot/ui.py
index 91c1a97b..5d4dd4ab 100644
--- a/alot/ui.py
+++ b/alot/ui.py
@@ -328,6 +328,8 @@ class UI(object):
success = True
else:
string = 'closing buffer %d:%s'
+ buffers.remove(buf)
+ buf.cleanup()
success = True
# call post_buffer_closed hook