diff options
author | Stan Lo <[email protected]> | 2023-03-29 11:20:24 +0100 |
---|---|---|
committer | git <[email protected]> | 2023-03-29 10:20:29 +0000 |
commit | 02ecdf85c5896e8da9abe4765147e995396377a5 (patch) | |
tree | 1c1b8980cddc2a144c2a7a12b1ab53801d381548 /lib/reline/unicode.rb | |
parent | 3155b76eb4d8a689207270e859fb2c0a6e17465a (diff) |
[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
Diffstat (limited to 'lib/reline/unicode.rb')
-rw-r--r-- | lib/reline/unicode.rb | 4 |
1 files 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 |