Skip to content

Commit 6d3f44d

Browse files
committed
Actually overload Base's escape_string
While part of the code brought over from Base (or rather a PR to Base) in 745385d, it was missed when adding the relevant imports to overload the Base methods. The main impact of this was slow 3-arg show performance, as raised in issue #72.
1 parent 58507e5 commit 6d3f44d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/io.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ Base.print(io::IO, s::Union{<:AnnotatedString, SubString{<:AnnotatedString}}) =
261261
Base.print(io::Base.AnnotatedIOBuffer, s::Union{<:AnnotatedString, SubString{<:AnnotatedString}}) =
262262
(write(io, s); nothing)
263263

264-
escape_string(io::IO, s::Union{<:AnnotatedString, SubString{<:AnnotatedString}},
264+
Base.escape_string(io::IO, s::Union{<:AnnotatedString, SubString{<:AnnotatedString}},
265265
esc = ""; keep = ()) =
266266
(_ansi_writer(io, s, (io, s) -> escape_string(io, s, esc; keep)); nothing)
267267

0 commit comments

Comments
 (0)