Fix crash sending long message

Don't move the input window itself when restoring the cursor to the
input window - just put the cursor there and refresh.
This commit is contained in:
Russell Schmidt
2025-03-18 11:58:00 -05:00
parent aa8a66ef22
commit 8e6edf8e83
+4 -4
View File
@@ -443,9 +443,9 @@ def draw_node_list():
refresh_pad(2)
# Restore cursor to input field
entry_win.move(1, len("Input: ") + len(input_text)+1)
entry_win.refresh()
entry_win.keypad(True)
curses.curs_set(1)
entry_win.refresh()
def select_channel(idx):
old_selected_channel = globals.selected_channel
@@ -544,9 +544,9 @@ def draw_packetlog_win():
packetlog_win.refresh()
# Restore cursor to input field
entry_win.move(1, len("Input: ") + len(input_text)+1)
entry_win.refresh()
entry_win.keypad(True)
curses.curs_set(1)
entry_win.refresh()
def search(win):
start_idx = globals.selected_node