Skip to content

Commit e32ae3e

Browse files
Niloth-pneiljp
authored andcommitted
boxes/views: Adopt urwid_readline for all editors.
The panel search boxes were the only remaining editors not using urwid_readline.ReadlineEdit.
1 parent 81b1e72 commit e32ae3e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

zulipterminal/ui_tools/boxes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ def keypress(self, size: urwid_Size, key: str) -> Optional[str]:
964964
return key
965965

966966

967-
class PanelSearchBox(urwid.Edit):
967+
class PanelSearchBox(ReadlineEdit):
968968
"""
969969
Search Box to search panel views in real-time.
970970
"""

zulipterminal/ui_tools/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ def update_user_list(
682682
user_list is not None and search_box is None and new_text is None
683683
) # _start_presence_updates.
684684

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

0 commit comments

Comments
 (0)