From 18405d9594a78f75f2a941169fe7a9f0532b1ca7 Mon Sep 17 00:00:00 2001 From: aycabta Date: Mon, 6 Sep 2021 05:22:28 +0900 Subject: [PATCH] Add that Reline::Unicode.take_range is cutting based on width --- 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 a0fe0741f4..80cc54a05e 100644 --- a/lib/reline/unicode.rb +++ b/lib/reline/unicode.rb @@ -185,7 +185,7 @@ def self.split_by_width(str, max_width, encoding = str.encoding) [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