File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ function create_mode(repl::REPL.AbstractREPL, main::LineEdit.Prompt)
168168 return pkg_mode
169169end
170170
171- function repl_init (repl:: REPL.AbstractREPL )
171+ function repl_init (repl:: REPL.LineEditREPL )
172172 main_mode = repl. interface. modes[1 ]
173173 pkg_mode = create_mode (repl, main_mode)
174174 push! (repl. interface. modes, pkg_mode)
311311
312312function __init__ ()
313313 if isdefined (Base, :active_repl )
314- repl_init (Base. active_repl)
314+ if Base. active_repl isa REPL. LineEditREPL
315+ repl_init (Base. active_repl)
316+ else
317+ # not sure what to do here..
318+ # LineEditREPL Is the only type of REPL that has the `interface` field that
319+ # init_repl accesses.
320+ end
315321 else
316322 atreplinit () do repl
317323 if isinteractive () && repl isa REPL. LineEditREPL
You can’t perform that action at this time.
0 commit comments