Skip to content

Commit

Permalink
Add that Reline::Unicode.take_range is cutting based on width
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Sep 5, 2021
1 parent 3c13d93 commit 18405d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reline/unicode.rb
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def self.split_by_width(str, max_width, encoding = str.encoding)
[lines, height]
end

# Take a chunk of a String with escape sequences.
# 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)
total_width = 0
Expand Down

0 comments on commit 18405d9

Please sign in to comment.