summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Lo <stan001212@gmail.com>2023-03-29 11:20:24 +0100
committergit <svn-admin@ruby-lang.org>2023-03-29 10:20:29 +0000
commit02ecdf85c5896e8da9abe4765147e995396377a5 (patch)
tree1c1b8980cddc2a144c2a7a12b1ab53801d381548
parent3155b76eb4d8a689207270e859fb2c0a6e17465a (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
-rw-r--r--lib/reline/unicode.rb4
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