Skip to content

Commit

Permalink
empty line in REPL help mode prints general help (#25409)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC authored Jan 7, 2018
1 parent abb2061 commit d9f482d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions base/docs/basedocs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ macro kw_str(text) Keyword(Symbol(text)) end
https://docs.julialang.org/
as well many great tutorials and learning resources:
as well as many great tutorials and learning resources:
https://julialang.org/learning/
For help on a specific function or macro, type `?` followed
by its name, e.g. `?cos`, or `?@time`, and press enter.
"""
kw"help", kw"?", kw"julia"
kw"help", kw"?", kw"julia", kw""

"""
using
Expand Down
2 changes: 1 addition & 1 deletion base/repl/REPL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ function setup_interface(
repl = repl,
complete = replc,
# When we're done transform the entered line into a call to help("$line")
on_done = respond(Docs.helpmode, repl, julia_prompt))
on_done = respond(Docs.helpmode, repl, julia_prompt, pass_empty=true))

# Set up shell mode
shell_mode = Prompt("shell> ";
Expand Down

0 comments on commit d9f482d

Please sign in to comment.