Skip to content

Commit c356e60

Browse files
JeffBezansonKristofferC
authored andcommitted
add invokelatest to on_done callback in bracketed paste (#53696)
fixes #52120 (cherry picked from commit bb3b09d)
1 parent cd297c7 commit c356e60

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
@@ -1340,7 +1340,7 @@ function setup_interface(
13401340
# execute the statement
13411341
terminal = LineEdit.terminal(s) # This is slightly ugly but ok for now
13421342
raw!(terminal, false) && disable_bracketed_paste(terminal)
1343-
LineEdit.mode(s).on_done(s, LineEdit.buffer(s), true)
1343+
@invokelatest LineEdit.mode(s).on_done(s, LineEdit.buffer(s), true)
13441344
raw!(terminal, true) && enable_bracketed_paste(terminal)
13451345
LineEdit.push_undo(s) # when the last line is incomplete
13461346
end

0 commit comments

Comments
 (0)