Skip to content

Commit dd275af

Browse files
committed
missed prevind
1 parent 67439c6 commit dd275af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/formatexpr.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function find_next_entry_open(s::AbstractString, si::Int)
9696
(p === nothing || p < slen) || _raise_unmatched_lbrace()
9797
end
9898
# println("open at $p")
99-
pre = p !== nothing ? s[si:p-1] : s[si:end]
99+
pre = p !== nothing ? s[si:prevind(s, p)] : s[si:end]
100100
if !isempty(pre)
101101
pre = replace(pre, "{{" => '{')
102102
pre = replace(pre, "}}" => '}')

0 commit comments

Comments
 (0)