Merge pull request #48 from rfschmid/fix-crash-on-long-input

This commit is contained in:
pdxlocations
2025-01-22 17:00:58 -08:00
committed by GitHub
+1 -2
View File
@@ -292,10 +292,9 @@ def main_ui(stdscr):
curses.curs_set(1)
while True:
draw_text_field(entry_win, f"Input: {input_text}")
draw_text_field(entry_win, f"Input: {input_text[-(width - 10):]}")
# Get user input from entry window
entry_win.move(1, len(input_text) + 8)
char = entry_win.get_wch()
# draw_debug(f"Keypress: {char}")