From f3f7c3118cf21c2f6b52b32f990807f145f626bd Mon Sep 17 00:00:00 2001 From: Kristoffer Date: Tue, 4 Aug 2020 16:40:01 +0200 Subject: [PATCH] fix confusion between function name and local variable --- stdlib/REPL/src/REPL.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/REPL/src/REPL.jl b/stdlib/REPL/src/REPL.jl index 78b4d4d900a9c..add3a9f961557 100644 --- a/stdlib/REPL/src/REPL.jl +++ b/stdlib/REPL/src/REPL.jl @@ -1007,7 +1007,8 @@ function setup_interface( end hist_from_file(hp, f, hist_path) catch - print_response(repl, (catch_stack(),true), true, hascolor(repl)) + # use REPL.hascolor to avoid using the local variable with the same name + print_response(repl, (catch_stack(),true), true, REPL.hascolor(repl)) println(outstream(repl)) @info "Disabling history file for this session" repl.history_file = false