Skip to content

Commit

Permalink
Clean up some mess
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb-allen committed Oct 28, 2023
1 parent 294af95 commit 0de266a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion stdlib/REPL/src/LineEdit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2047,7 +2047,7 @@ end

input_string(s::PrefixSearchState) = String(take!(copy(s.response_buffer)))

write_prompt(terminal, s::PrefixSearchState,) = write_prompt(terminal, s.histprompt.parent_prompt)
write_prompt(terminal, s::PrefixSearchState) = write_prompt(terminal, s.histprompt.parent_prompt)
prompt_string(s::PrefixSearchState) = prompt_string(s.histprompt.parent_prompt.prompt)

terminal(s::PrefixSearchState) = s.terminal
Expand Down
9 changes: 0 additions & 9 deletions stdlib/REPL/src/REPL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1478,19 +1478,10 @@ function run_frontend(repl::StreamREPL, backend::REPLBackendRef)
dopushdisplay = !in(d,Base.Multimedia.displays)
dopushdisplay && pushdisplay(d)
while !eof(repl.stream)::Bool
# if have_color
# print(repl.stream,repl.prompt_color)
# end
print(repl.stream, JULIA_PROMPT)
# if have_color
# print(repl.stream, input_color(repl))
# end
line = readline(repl.stream, keep=true)
if !isempty(line)
ast = Base.parse_input_line(line)
# if have_color
# print(repl.stream, Base.color_normal)
# end
response = eval_with_backend(ast, backend)
print_response(repl, response, !ends_with_semicolon(line), have_color)
end
Expand Down
4 changes: 0 additions & 4 deletions stdlib/REPL/src/precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ cd("complete_path\t\t$CTRL_C

julia_exepath() = joinpath(Sys.BINDIR, Base.julia_exename())

# const JULIA_PROMPT = "julia> "
# const PKG_PROMPT = "pkg> "
# const SHELL_PROMPT = "shell> "
# const HELP_PROMPT = "help?> "
const JULIA_PROMPT = styled"{repl_prompt_julia:julia> }"
const PKG_PROMPT = styled"{repl_prompt_pkg:pkg> }"
const SHELL_PROMPT = styled"{repl_prompt_shell:shell> }"
Expand Down

0 comments on commit 0de266a

Please sign in to comment.