Skip to content

Commit

Permalink
boxes/views: Adopt urwid_readline for all editors.
Browse files Browse the repository at this point in the history
The panel search boxes were the only remaining editors
not using urwid_readline.ReadlineEdit.
  • Loading branch information
Niloth-p authored and neiljp committed May 9, 2024
1 parent 81b1e72 commit e32ae3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit e32ae3e

Please sign in to comment.