Skip to content

Commit bb3b09d

Browse files
authored
add invokelatest to on_done callback in bracketed paste (#53696)
fixes #52120
1 parent 0e2409a commit bb3b09d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/REPL/src/REPL.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ function setup_interface(
13791379
# execute the statement
13801380
terminal = LineEdit.terminal(s) # This is slightly ugly but ok for now
13811381
raw!(terminal, false) && disable_bracketed_paste(terminal)
1382-
LineEdit.mode(s).on_done(s, LineEdit.buffer(s), true)
1382+
@invokelatest LineEdit.mode(s).on_done(s, LineEdit.buffer(s), true)
13831383
raw!(terminal, true) && enable_bracketed_paste(terminal)
13841384
LineEdit.push_undo(s) # when the last line is incomplete
13851385
end

0 commit comments

Comments
 (0)