diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2025-01-05 10:43:01 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2025-01-05 10:43:01 -0300 |
commit | 843a1bb43e70ab041524dbc696ed37246a6b2b79 (patch) | |
tree | 56944057ded25ff8e95a834534fd1fbdb16138a9 /packages | |
parent | b38b86deab7a5f61b5487744cb4e0c0b344d8cdf (diff) | |
download | finder-843a1bb43e70ab041524dbc696ed37246a6b2b79.tar.gz finder-843a1bb43e70ab041524dbc696ed37246a6b2b79.tar.bz2 |
Fix: use patch_stdout()
Diffstat (limited to 'packages')
-rw-r--r-- | packages/finder/main.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/finder/main.py b/packages/finder/main.py index 4c8f752..9396201 100644 --- a/packages/finder/main.py +++ b/packages/finder/main.py @@ -40,6 +40,7 @@ try: from prompt_toolkit.layout.margins import NumberedMargin, ScrollbarMargin from prompt_toolkit.enums import EditingMode from prompt_toolkit.document import Document + from prompt_toolkit.patch_stdout import patch_stdout except ImportError: print("Please install prompt_toolkit first!") raise ImportError @@ -315,7 +316,8 @@ class FinderMain(): self.state['loading'] = False def run(self): - return asyncio.run(self.main()) + with patch_stdout(): + return asyncio.run(self.main()) def set_handlers(self): # Searcher and opener objects |