From 02ecdf85c5896e8da9abe4765147e995396377a5 Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Wed, 29 Mar 2023 11:20:24 +0100 Subject: [PATCH] [ruby/reline] Drop Unicode.take_range's optional arg as it's never used (https://github.com/ruby/reline/pull/528) https://github.com/ruby/reline/commit/428fed4a6a --- lib/reline/unicode.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/reline/unicode.rb b/lib/reline/unicode.rb index 29c13811cd..0a7f59cf06 100644 --- a/lib/reline/unicode.rb +++ b/lib/reline/unicode.rb @@ -192,8 +192,8 @@ class Reline::Unicode end # 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) + def self.take_range(str, start_col, max_width) + chunk = String.new(encoding: str.encoding) total_width = 0 rest = str.encode(Encoding::UTF_8) in_zero_width = false