1
0
Fork 0
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:
Nobuyoshi Nakada 2022-09-03 03:24:43 +09:00 committed by git
parent 5044832fec
commit 1b8a644b44

View file

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