fix: Remove timeout and unnecessary input check to improve mouse event handling

This commit is contained in:
n loewen (aider) 2025-06-07 22:01:43 +01:00
parent 4f48007927
commit ccefbcef03
1 changed files with 0 additions and 3 deletions

View File

@ -509,7 +509,6 @@ def handle_keyboard_input(key, state):
def main(stdscr, filename, show_diff, show_add, show_del, mouse):
curses.curs_set(0)
stdscr.keypad(True)
stdscr.timeout(50)
if curses.has_colors():
curses.use_default_colors()
@ -531,8 +530,6 @@ def main(stdscr, filename, show_diff, show_add, show_del, mouse):
while not state.should_exit:
key = stdscr.getch()
if key == -1:
continue
# Process input and update the application state
if key == curses.KEY_RESIZE: