From 6e5996e26f7a4603ace611a91d15a4fb5031865b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Balzarotti?= Date: Mon, 17 Sep 2018 15:35:46 +0200 Subject: [PATCH] change prompt color to magenta --- src/repl.jl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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)