Skip to content

Commit 69269ab

Browse files
REPL.prompt!: don't use Char peek (JuliaLang#54865)
1 parent 7ad4116 commit 69269ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/REPL/src/LineEdit.jl

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

0 commit comments

Comments
 (0)