diff options
author | aycabta <aycabta@gmail.com> | 2021-09-06 05:22:28 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-09-06 05:22:36 +0900 |
commit | e68a5862630590caf79ac0576ba6d15135709d58 (patch) | |
tree | 003259853816dfc45d7e4ebdf8fa036df8989314 /lib/reline | |
parent | 1fe604a67501d5f05694266d065833e3c150d79a (diff) |
[ruby/reline] Add that Reline::Unicode.take_range is cutting based on width
https://github.com/ruby/reline/commit/18405d9594
Diffstat (limited to 'lib/reline')
-rw-r--r-- | lib/reline/unicode.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/unicode.rb b/lib/reline/unicode.rb index a0fe0741f4..80cc54a05e 100644 --- a/lib/reline/unicode.rb +++ b/lib/reline/unicode.rb @@ -185,7 +185,7 @@ class Reline::Unicode [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 |