Skip to content

Commit

Permalink
Remove TODO comment in #render_partial
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Jun 2, 2021
1 parent 3a6281e commit bb6ea23
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/reline/line_editor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,6 @@ def just_move_cursor
private def render_partial(prompt, prompt_width, line_to_render, this_started_from, with_control: true)
visual_lines, height = split_by_width(line_to_render.nil? ? prompt : prompt + line_to_render, @screen_size.last)
cursor_up_from_last_line = 0
# TODO: This logic would be sometimes buggy if this logical line isn't the current @line_index.
if @scroll_partial_screen
last_visual_line = this_started_from + (height - 1)
last_screen_line = @scroll_partial_screen + (@screen_height - 1)
Expand Down

0 comments on commit bb6ea23

Please sign in to comment.