mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/reline] Fix a typo [ci skip]
https://github.com/ruby/reline/commit/33bf80e757
This commit is contained in:
parent
5044832fec
commit
1b8a644b44
1 changed files with 1 additions and 1 deletions
|
@ -656,7 +656,7 @@ class Reline::LineEditor
|
|||
|
||||
private def padding_space_with_escape_sequences(str, width)
|
||||
padding_width = width - calculate_width(str, true)
|
||||
# padding_width should be only positive value. But macOS and Aracritty returns negative value.
|
||||
# padding_width should be only positive value. But macOS and Alacritty returns negative value.
|
||||
padding_width = 0 if padding_width < 0
|
||||
str + (' ' * padding_width)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue