change prompt color to magenta

master
Nicolò Balzarotti 2018-09-17 15:35:46 +02:00
parent 6bd0256917
commit 6e5996e26f
1 changed files with 6 additions and 2 deletions

View File

@ -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)