mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
[ruby/reline] Drop Unicode.take_range's optional arg as it's never
used
(https://github.com/ruby/reline/pull/528)
428fed4a6a
This commit is contained in:
parent
3155b76eb4
commit
02ecdf85c5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue