aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/finder/main.py4
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