[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
This commit is contained in:
Stan Lo 2023-03-29 11:20:24 +01:00 коммит произвёл git
Родитель 3155b76eb4
Коммит 02ecdf85c5
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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