зеркало из https://github.com/github/ruby.git
[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:
Родитель
3155b76eb4
Коммит
02ecdf85c5
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче