Skip to content

Commit 0d28115

Browse files
committed
unicode fix
1 parent 2f96fbc commit 0d28115

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/patch/cst.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function patch(io::IO, src::SourceFile, rs)
9696
rs = sort(rs, by=x->first(x[1]))
9797
offset = 1
9898
for r in rs
99-
print(io, src.text[(offset:first(r[1])-1)])
99+
print(io, src.text[offset:prevind(src.text, first(r[1]))])
100100
print(io, r[2])
101101
offset = last(r[1])+1
102102
end

0 commit comments

Comments
 (0)