Skip to content

Commit 11eeed3

Browse files
authored
feat(REPL): Added active_module context to numbered REPL (#59000)
1 parent f2a8e18 commit 11eeed3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/REPL/src/REPL.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1883,10 +1883,10 @@ end
18831883

18841884
function set_prompt(repl::LineEditREPL, n::Ref{Int})
18851885
julia_prompt = repl.interface.modes[1]
1886-
julia_prompt.prompt = function()
1886+
julia_prompt.prompt = REPL.contextual_prompt(repl, function()
18871887
n[] = repl_eval_counter(julia_prompt.hist)+1
18881888
string("In [", n[], "]: ")
1889-
end
1889+
end)
18901890
nothing
18911891
end
18921892

0 commit comments

Comments
 (0)