fix: Remove redundant nodelay(True) to improve mouse event handling
This commit is contained in:
parent
e663e3b417
commit
db4b7b574e
1
gtm2.py
1
gtm2.py
|
|
@ -506,7 +506,6 @@ def handle_keyboard_input(key, state):
|
||||||
def main(stdscr, filename, show_diff, show_add, show_del, mouse):
|
def main(stdscr, filename, show_diff, show_add, show_del, mouse):
|
||||||
curses.curs_set(0)
|
curses.curs_set(0)
|
||||||
stdscr.keypad(True)
|
stdscr.keypad(True)
|
||||||
stdscr.nodelay(True)
|
|
||||||
stdscr.timeout(50)
|
stdscr.timeout(50)
|
||||||
|
|
||||||
if curses.has_colors():
|
if curses.has_colors():
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue