From daf4a8884b36f44127fca9d0502080b32eda7f03 Mon Sep 17 00:00:00 2001 From: aycabta Date: Wed, 22 Dec 2021 00:01:58 +0900 Subject: [ruby/reline] Add comment for a following char of combined char https://github.com/ruby/reline/commit/d465667f57 --- lib/reline/line_editor.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 9b206d9adf..053ec441a9 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -2030,6 +2030,7 @@ class Reline::LineEditor @byte_pointer += bytesize 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 + # combined char width = 0 end @cursor += width -- cgit v1.2.3