[ruby/reline] Add comment for a following char of combined char
https://github.com/ruby/reline/commit/d465667f57
This commit is contained in:
parent
40a1af6151
commit
daf4a8884b
@ -2030,6 +2030,7 @@ class Reline::LineEditor
|
|||||||
@byte_pointer += bytesize
|
@byte_pointer += bytesize
|
||||||
last_mbchar = @line.byteslice((@byte_pointer - bytesize - last_byte_size), last_byte_size)
|
last_mbchar = @line.byteslice((@byte_pointer - bytesize - last_byte_size), last_byte_size)
|
||||||
if last_byte_size != 0 and (last_mbchar + str).grapheme_clusters.size == 1
|
if last_byte_size != 0 and (last_mbchar + str).grapheme_clusters.size == 1
|
||||||
|
# combined char
|
||||||
width = 0
|
width = 0
|
||||||
end
|
end
|
||||||
@cursor += width
|
@cursor += width
|
||||||
|
Loading…
x
Reference in New Issue
Block a user