diff --git a/src/repl.jl b/src/repl.jl index 6ea5bc8..be810a6 100644 --- a/src/repl.jl +++ b/src/repl.jl @@ -252,7 +252,11 @@ function parse(cmd::String; for_completions=false) word_groups = group_words(words) # create statements if for_completions - return _statement(word_groups[end]) + if length(word_groups) > 0 + return _statement(word_groups[end]) + else + return [] + end end return map(Statement, word_groups) end @@ -712,7 +716,7 @@ end # Set up the repl Pkg REPLMode function create_mode(repl, main) matrix_mode = LineEdit.Prompt(promptf; - prompt_prefix = Base.text_colors[:blue], + prompt_prefix = Base.text_colors[:magenta], prompt_suffix = "", complete = MatrixCompletionProvider(), sticky = true)