File tree 1 file changed +8
-2
lines changed
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)
168
168
return pkg_mode
169
169
end
170
170
171
- function repl_init (repl:: REPL.AbstractREPL )
171
+ function repl_init (repl:: REPL.LineEditREPL )
172
172
main_mode = repl. interface. modes[1 ]
173
173
pkg_mode = create_mode (repl, main_mode)
174
174
push! (repl. interface. modes, pkg_mode)
311
311
312
312
function __init__ ()
313
313
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
315
321
else
316
322
atreplinit () do repl
317
323
if isinteractive () && repl isa REPL. LineEditREPL
You can’t perform that action at this time.
0 commit comments