Skip to content

Commit

Permalink
Merge pull request #20422 from JuliaLang/kf/rmcompletionr
Browse files Browse the repository at this point in the history
Remove unused field from completion providers
  • Loading branch information
JeffBezanson authored Feb 3, 2017
2 parents 1d2a66f + 6798c1a commit c9d023e
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions base/REPL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,9 @@ LineEditREPL(t::TextTerminal, envcolors = false) = LineEditREPL(t,
Base.text_colors[:yellow],
false, false, false, envcolors)

type REPLCompletionProvider <: CompletionProvider
r::LineEditREPL
end
type REPLCompletionProvider <: CompletionProvider; end

type ShellCompletionProvider <: CompletionProvider
r::LineEditREPL
end
type ShellCompletionProvider <: CompletionProvider; end

immutable LatexCompletions <: CompletionProvider; end

Expand Down Expand Up @@ -713,7 +709,7 @@ function setup_interface(repl::LineEditREPL; hascolor = repl.hascolor, extra_rep
############################### Stage I ################################

# This will provide completions for REPL and help mode
replc = REPLCompletionProvider(repl)
replc = REPLCompletionProvider()

# Set up the main Julia prompt
julia_prompt = Prompt(JULIA_PROMPT;
Expand Down Expand Up @@ -741,7 +737,7 @@ function setup_interface(repl::LineEditREPL; hascolor = repl.hascolor, extra_rep
prompt_suffix = hascolor ?
(repl.envcolors ? Base.input_color : repl.input_color) : "",
keymap_func_data = repl,
complete = ShellCompletionProvider(repl),
complete = ShellCompletionProvider(),
# Transform "foo bar baz" into `foo bar baz` (shell quoting)
# and pass into Base.repl_cmd for processing (handles `ls` and `cd`
# special)
Expand Down

0 comments on commit c9d023e

Please sign in to comment.