Skip to content

Commit 1d4cf2c

Browse files
IanButterworthKristofferC
authored andcommitted
REPL.prompt!: don't use Char peek (#54865)
1 parent 0c06ae1 commit 1d4cf2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/REPL/src/LineEdit.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2841,7 +2841,7 @@ function prompt!(term::TextTerminal, prompt::ModalInterface, s::MIState = init_s
28412841
# spawn this because the main repl task is sticky (due to use of @async and _wait2)
28422842
# and we want to not block typing when the repl task thread is busy
28432843
t2 = Threads.@spawn :interactive while true
2844-
eof(term) || peek(term, Char) # wait before locking but don't consume
2844+
eof(term) || peek(term) # wait before locking but don't consume
28452845
@lock l begin
28462846
kmap = keymap(s, prompt)
28472847
fcn = match_input(kmap, s)

0 commit comments

Comments
 (0)