X Tutup
Skip to content

Commit 3707a62

Browse files
committed
fix ungetching on wrong window - should be repl.scr, not stdscr
1 parent 4eade2d commit 3707a62

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

bpython/cli.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1865,12 +1865,10 @@ def idle(caller):
18651865
messages and the resize handlers need to be here to make
18661866
sure it happens conveniently."""
18671867

1868-
global stdscr
1869-
18701868
if importcompletion.find_coroutine() or caller.paste_mode:
1871-
stdscr.nodelay(True)
1872-
key = stdscr.getch()
1873-
stdscr.nodelay(False)
1869+
caller.scr.nodelay(True)
1870+
key = caller.scr.getch()
1871+
caller.scr.nodelay(False)
18741872
curses.ungetch(key)
18751873
caller.statusbar.check()
18761874
caller.check()

0 commit comments

Comments
 (0)
X Tutup