Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/char/reader.cr
Original file line number Diff line number Diff line change
@@ -208,6 +208,7 @@ struct Char
raise InvalidByteSequenceError.new("Unexpected byte 0x#{byte.to_s(16)} at position #{byte_position}, malformed UTF-8")
end

@[AlwaysInline]
private def decode_current_char
decode_char_at(@pos) do |code_point, width|
@current_char_width = width

0 comments on commit 37f15db

Please sign in to comment.