Skip to content

Commit a652cd8

Browse files
authored
fix confusion between function name and local variable (#36914)
1 parent dffc889 commit a652cd8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/REPL/src/REPL.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,8 @@ function setup_interface(
10071007
end
10081008
hist_from_file(hp, f, hist_path)
10091009
catch
1010-
print_response(repl, (catch_stack(),true), true, hascolor(repl))
1010+
# use REPL.hascolor to avoid using the local variable with the same name
1011+
print_response(repl, (catch_stack(),true), true, REPL.hascolor(repl))
10111012
println(outstream(repl))
10121013
@info "Disabling history file for this session"
10131014
repl.history_file = false

0 commit comments

Comments
 (0)