diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2016-12-06 14:50:42 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2016-12-06 14:50:42 +0000 |
commit | aff1d43edeb814be416b1e504f3ee9ba0debcce6 (patch) | |
tree | 9a4ea7c776d8a1f5d31bc4fa62c62df94bbcf4b9 /alot | |
parent | bee169141788e650cf446ab4fbd3f5fe9f253a2e (diff) | |
parent | 3e5738bacba2fe250529a97045f48dfc3861dc83 (diff) |
Merge branch '0.3.8-SIGINT-903'
Diffstat (limited to 'alot')
-rw-r--r-- | alot/ui.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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() |