From b32548c8b6f215e7b1b1dede8b5423d3e62ab97d Mon Sep 17 00:00:00 2001 From: Matthias Liero Date: Sat, 22 Aug 2026 23:21:01 +0200 Subject: [PATCH] Fix edit_insert MethodError in debug-mode keymap fallback on Julia 1.12 Fixes #420 --- src/debugmode.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/debugmode.jl b/src/debugmode.jl index 9aebbef..65cc1cc 100644 --- a/src/debugmode.jl +++ b/src/debugmode.jl @@ -118,7 +118,8 @@ function install_repl_mode(repl = Base.active_repl; key::Char = ')') push!(repl.interface.modes, debug_mode) - key_action = get(main_mode.keymap_dict, key, LineEdit.edit_insert) + + key_action = get(main_mode.keymap_dict, key, (s, repl, c) -> LineEdit.edit_insert(s, c)) enter_debug_mode = function (s, args...) if isempty(s) || position(LineEdit.buffer(s)) == 0 buf = copy(LineEdit.buffer(s))