ruby-changes:67613
From: aycabta <ko1@a...>
Date: Mon, 6 Sep 2021 05:22:46 +0900 (JST)
Subject: [ruby-changes:67613] e68a586263 (master): [ruby/reline] Add that Reline::Unicode.take_range is cutting based on width
https://git.ruby-lang.org/ruby.git/commit/?id=e68a586263 From e68a5862630590caf79ac0576ba6d15135709d58 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Mon, 6 Sep 2021 05:22:28 +0900 Subject: [ruby/reline] Add that Reline::Unicode.take_range is cutting based on width https://github.com/ruby/reline/commit/18405d9594 --- lib/reline/unicode.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reline/unicode.rb b/lib/reline/unicode.rb index a0fe074..80cc54a 100644 --- a/lib/reline/unicode.rb +++ b/lib/reline/unicode.rb @@ -185,7 +185,7 @@ class Reline::Unicode https://github.com/ruby/ruby/blob/trunk/lib/reline/unicode.rb#L185 [lines, height] end - # Take a chunk of a String with escape sequences. + # Take a chunk of a String cut by width with escape sequences. def self.take_range(str, start_col, max_width, encoding = str.encoding) chunk = String.new(encoding: encoding) total_width = 0 -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/