class Reline::LineEditor

def calculate_scroll_partial_screen(highest_in_all, cursor_y)

def calculate_scroll_partial_screen(highest_in_all, cursor_y)
reen_height < highest_in_all
scroll_partial_screen = @scroll_partial_screen
ursor_y == 0
croll_partial_screen = 0
f cursor_y == (highest_in_all - 1)
croll_partial_screen = highest_in_all - @screen_height

 @scroll_partial_screen
if cursor_y <= @scroll_partial_screen
  @scroll_partial_screen = cursor_y
elsif (@scroll_partial_screen + @screen_height - 1) < cursor_y
  @scroll_partial_screen = cursor_y - (@screen_height - 1)
end
se
if cursor_y > (@screen_height - 1)
  @scroll_partial_screen = cursor_y - (@screen_height - 1)
else
  @scroll_partial_screen = 0
end
d
scroll_partial_screen != old_scroll_partial_screen
erender_all = true
scroll_partial_screen
erender_all = true
oll_partial_screen = nil