Skip to content

Commit

Permalink
Merge branch '0.3.8-SIGINT-903'
Browse files Browse the repository at this point in the history
  • Loading branch information
pazz committed Dec 6, 2016
2 parents bee1691 + 3e5738b commit aff1d43
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions alot/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
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
Expand Down Expand Up @@ -656,6 +656,7 @@ def handle_signal(self, signum, frame):
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()

0 comments on commit aff1d43

Please sign in to comment.