summaryrefslogtreecommitdiff
path: root/lib/reline
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-06-02 19:10:08 +0900
committeraycabta <aycabta@gmail.com>2021-06-21 17:58:49 +0900
commitb06218ce6ffdaf73d3668e760a34118021b978b5 (patch)
treee463fc6689fde56f205d310e9b58a2aab9c865d1 /lib/reline
parentcf186bfe146d187048f3902078682d0ebce4e001 (diff)
[ruby/reline] Remove TODO comment in #render_partial
https://github.com/ruby/reline/commit/bb6ea232c2
Diffstat (limited to 'lib/reline')
-rw-r--r--lib/reline/line_editor.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index 7d71e62d63..f2f53979a7 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -678,7 +678,6 @@ class Reline::LineEditor
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)