summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2016-12-06 14:50:42 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2016-12-06 14:50:42 +0000
commitaff1d43edeb814be416b1e504f3ee9ba0debcce6 (patch)
tree9a4ea7c776d8a1f5d31bc4fa62c62df94bbcf4b9 /alot
parentbee169141788e650cf446ab4fbd3f5fe9f253a2e (diff)
parent3e5738bacba2fe250529a97045f48dfc3861dc83 (diff)
Merge branch '0.3.8-SIGINT-903'
Diffstat (limited to 'alot')
-rw-r--r--alot/ui.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/alot/ui.py b/alot/ui.py
index 2f46aa8a..88a0785a 100644
--- a/alot/ui.py
+++ b/alot/ui.py
@@ -7,7 +7,7 @@ import signal
from twisted.internet import reactor, defer
from settings import settings
-from buffers import BufferlistBuffer
+from buffers import BufferlistBuffer, SearchBuffer
from commands import globals
from commands import commandfactory
from commands import CommandCanceled
@@ -656,6 +656,7 @@ class UI(object):
if signum == signal.SIGINT:
logging.info('shut down cleanly')
self.apply_command(globals.ExitCommand())
- self.current_buffer.rebuild()
- self.update()
-
+ elif signum == signal.SIGUSR1:
+ if isinstance(self.current_buffer, SearchBuffer):
+ self.current_buffer.rebuild()
+ self.update()