Skip to content

Commit

Permalink
0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
MacHu-GWU committed Oct 24, 2023
1 parent f7969ef commit 9bc41e9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions release-history.rst
Expand Up @@ -15,6 +15,13 @@ x.y.z (Backlog)
**Miscellaneous**


0.1.3 (2023-10-24)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**Minor Improvements**

- Print ``🔴 keyboard interrupt, exit.`` message when user press ``Ctrl+C``.


0.1.2 (2023-10-20)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**Miscellaneous**
Expand Down
2 changes: 1 addition & 1 deletion zelfred/_version.py
@@ -1,4 +1,4 @@
__version__ = "0.1.2"
__version__ = "0.1.3"

if __name__ == "__main__": # pragma: no cover
print(__version__)
5 changes: 4 additions & 1 deletion zelfred/ui.py
Expand Up @@ -603,7 +603,7 @@ def run(self, _do_init: bool = True):
self.main_loop()
except exc.EndOfInputError as e:
return e.selection
except exc.JumpOutLoopError as e:
except exc.JumpOutLoopError:
if self._handler_queue:
self.handler = self._handler_queue.pop()
self.line_editor.clear_line()
Expand All @@ -614,6 +614,9 @@ def run(self, _do_init: bool = True):
self.print_query()
self.print_items()
return self.run(_do_init=False)
except KeyboardInterrupt:
self.move_to_end()
print("🔴 keyboard interrupt, exit.", end="")
except Exception as e:
if self.capture_error:
self.debug_loop(e)
Expand Down

0 comments on commit 9bc41e9

Please sign in to comment.