Skip to content

Commit ef12257

Browse files
committed
core: Increase display time report_success word length and reading time.
1 parent 431043e commit ef12257

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

zulipterminal/core.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,9 @@ def report_success(self, text: str) -> None:
447447
"""
448448
Helper to show a success message in footer
449449
"""
450-
self.view.set_footer_text(text, "task:success", 3)
450+
self.view.set_footer_text(
451+
text, "task:success", float(len(text.split()) * 6 / 13)
452+
) # Average reading speed = 130 wpm
451453

452454
def report_warning(self, text: str) -> None:
453455
"""

0 commit comments

Comments
 (0)