Skip to content

Commit

Permalink
REPL.prompt!: don't use Char peek (#54865)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth authored Jun 21, 2024
1 parent 7ad4116 commit 69269ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/REPL/src/LineEdit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2840,7 +2840,7 @@ function prompt!(term::TextTerminal, prompt::ModalInterface, s::MIState = init_s
# spawn this because the main repl task is sticky (due to use of @async and _wait2)
# and we want to not block typing when the repl task thread is busy
t2 = Threads.@spawn :interactive while true
eof(term) || peek(term, Char) # wait before locking but don't consume
eof(term) || peek(term) # wait before locking but don't consume
@lock l begin
kmap = keymap(s, prompt)
fcn = match_input(kmap, s)
Expand Down

0 comments on commit 69269ab

Please sign in to comment.