Skip to content

Commit

Permalink
Merge branch 'jonathanslenders-refresh-resources-fix'
Browse files Browse the repository at this point in the history
* jonathanslenders-refresh-resources-fix:
  When pressing F5, refresh resources using 'run_in_terminal'. This avoids destroying the rendering output.
  • Loading branch information
donnemartin committed Sep 22, 2015
2 parents 033f1a0 + e2029d8 commit 063e09b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions saws/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,16 @@ def handle_f4(_):
set_shortcut_match(not get_shortcut_match())

@self.manager.registry.add_binding(Keys.F5)
def handle_f5(_):
def handle_f5(event):
"""Refreshes AWS resources.
Args:
* _: An instance of prompt_toolkit's Event (not used).
* _: An instance of prompt_toolkit's Event.
Returns:
None.
"""
refresh_resources()
event.cli.run_in_terminal(refresh_resources)

@self.manager.registry.add_binding(Keys.F9)
def handle_f9(_):
Expand Down

0 comments on commit 063e09b

Please sign in to comment.