Skip to content

Commit

Permalink
add invokelatest to on_done callback in bracketed paste (#53696)
Browse files Browse the repository at this point in the history
fixes #52120
  • Loading branch information
JeffBezanson authored Mar 27, 2024
1 parent 0e2409a commit bb3b09d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/REPL/src/REPL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,7 @@ function setup_interface(
# execute the statement
terminal = LineEdit.terminal(s) # This is slightly ugly but ok for now
raw!(terminal, false) && disable_bracketed_paste(terminal)
LineEdit.mode(s).on_done(s, LineEdit.buffer(s), true)
@invokelatest LineEdit.mode(s).on_done(s, LineEdit.buffer(s), true)
raw!(terminal, true) && enable_bracketed_paste(terminal)
LineEdit.push_undo(s) # when the last line is incomplete
end
Expand Down

0 comments on commit bb3b09d

Please sign in to comment.