Skip to content

boxes/views: Adopt urwid_readline for all editors. #1492

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion zulipterminal/ui_tools/boxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ def keypress(self, size: urwid_Size, key: str) -> Optional[str]:
return key


class PanelSearchBox(urwid.Edit):
class PanelSearchBox(ReadlineEdit):
"""
Search Box to search panel views in real-time.
"""
Expand Down
2 changes: 1 addition & 1 deletion zulipterminal/ui_tools/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ def update_user_list(
user_list is not None and search_box is None and new_text is None
) # _start_presence_updates.

# Return if the method is called by PanelSearchBox (urwid.Edit) while
# Return if the method is called by PanelSearchBox (ReadlineEdit) while
# the search is inactive and user_list is None.
# NOTE: The additional not user_list check is to not false trap
# _start_presence_updates but allow it to update the user list.
Expand Down