[前][次][番号順一覧][スレッド一覧]

ruby-changes:70459

From: aycabta <ko1@a...>
Date: Fri, 24 Dec 2021 00:52:07 +0900 (JST)
Subject: [ruby-changes:70459] daf4a8884b (master): [ruby/reline] Add comment for a following char of combined char

https://git.ruby-lang.org/ruby.git/commit/?id=daf4a8884b

From daf4a8884b36f44127fca9d0502080b32eda7f03 Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
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(+)

diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index 9b206d9adfd..053ec441a97 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -2030,6 +2030,7 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L2030
     @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.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]