[ruby/reline] Workaround for padding width with Aracritty on macOS
https://github.com/ruby/reline/commit/fb4136c8a7
This commit is contained in:
parent
7ff50ee35c
commit
0d2422cf63
@ -655,7 +655,10 @@ class Reline::LineEditor
|
||||
end
|
||||
|
||||
private def padding_space_with_escape_sequences(str, width)
|
||||
str + (' ' * (width - calculate_width(str, true)))
|
||||
padding_width = width - calculate_width(str, true)
|
||||
# padding_width should be only positive value. But macOS and Aracritty returns negative value.
|
||||
padding_width = 0 if padding_width < 0
|
||||
str + (' ' * padding_width)
|
||||
end
|
||||
|
||||
private def render_each_dialog(dialog, cursor_column)
|
||||
|
Loading…
x
Reference in New Issue
Block a user