Skip to content

Commit 4d062a5

Browse files
authored
Pass IO to helpmode function (#36289)
1 parent 3c2a6e8 commit 4d062a5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

stdlib/REPL/src/REPL.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -939,8 +939,10 @@ function setup_interface(
939939
(repl.envcolors ? Base.input_color : repl.input_color) : "",
940940
repl = repl,
941941
complete = replc,
942-
# When we're done transform the entered line into a call to help("$line")
943-
on_done = respond(helpmode, repl, julia_prompt, pass_empty=true, suppress_on_semicolon=false))
942+
# When we're done transform the entered line into a call to helpmode function
943+
on_done = respond(line->helpmode(outstream(repl), line), repl, julia_prompt,
944+
pass_empty=true, suppress_on_semicolon=false))
945+
944946

945947
# Set up shell mode
946948
shell_mode = Prompt("shell> ";

0 commit comments

Comments
 (0)