mirror of
https://github.com/pdxlocations/contact.git
synced 2026-08-06 08:53:29 +02:00
Merge pull request #48 from rfschmid/fix-crash-on-long-input
This commit is contained in:
+1
-2
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user