Skip to content

Commit 02ecdf8

Browse files
st0012matzbot
authored andcommitted
[ruby/reline] Drop Unicode.take_range's optional arg as it's never
used (ruby/reline#528) ruby/reline@428fed4a6a
1 parent 3155b76 commit 02ecdf8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/reline/unicode.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ def self.split_by_width(str, max_width, encoding = str.encoding)
192192
end
193193

194194
# Take a chunk of a String cut by width with escape sequences.
195-
def self.take_range(str, start_col, max_width, encoding = str.encoding)
196-
chunk = String.new(encoding: encoding)
195+
def self.take_range(str, start_col, max_width)
196+
chunk = String.new(encoding: str.encoding)
197197
total_width = 0
198198
rest = str.encode(Encoding::UTF_8)
199199
in_zero_width = false

0 commit comments

Comments
 (0)