mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/reline] Adjust border of scrollbar rendering calculation
737b23beae
This commit is contained in:
parent
1d2edda9f8
commit
a2d2f00e4a
1 changed files with 2 additions and 2 deletions
|
@ -711,12 +711,12 @@ class Reline::LineEditor
|
|||
@output.write "\e[#{bg_color}m#{str}"
|
||||
if dialog.scrollbar_pos and (dialog.scrollbar_pos != old_dialog.scrollbar_pos or dialog.column != old_dialog.column)
|
||||
@output.write "\e[37m"
|
||||
if dialog.scrollbar_pos <= (i * 2) and (i * 2) < (dialog.scrollbar_pos + bar_height)
|
||||
if dialog.scrollbar_pos <= (i * 2) and (i * 2 + 1) < (dialog.scrollbar_pos + bar_height)
|
||||
@output.write '█'
|
||||
elsif dialog.scrollbar_pos <= (i * 2) and (i * 2) < (dialog.scrollbar_pos + bar_height)
|
||||
@output.write '▀'
|
||||
str += ''
|
||||
elsif dialog.scrollbar_pos <= (i * 2) and (i * 2) < (dialog.scrollbar_pos + bar_height)
|
||||
elsif dialog.scrollbar_pos <= (i * 2 + 1) and (i * 2) < (dialog.scrollbar_pos + bar_height)
|
||||
@output.write '▄'
|
||||
else
|
||||
@output.write ' ' * @block_elem_width
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue