File tree Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -676,17 +676,13 @@ def just_move_cursor
676
676
Reline ::IOGate . move_cursor_column ( 0 )
677
677
if line . nil?
678
678
if calculate_width ( visual_lines [ index - 1 ] , true ) == Reline ::IOGate . get_screen_size . last
679
- # reaches the end of line
680
- if Reline ::IOGate . win?
681
- # A newline is automatically inserted if a character is rendered at
682
- # eol on command prompt.
683
- else
684
- # When the cursor is at the end of the line and erases characters
685
- # after the cursor, some terminals delete the character at the
686
- # cursor position.
687
- move_cursor_down ( 1 )
688
- Reline ::IOGate . move_cursor_column ( 0 )
689
- end
679
+ # Reaches the end of line.
680
+ #
681
+ # When the cursor is at the end of the line and erases characters
682
+ # after the cursor, some terminals delete the character at the
683
+ # cursor position.
684
+ move_cursor_down ( 1 )
685
+ Reline ::IOGate . move_cursor_column ( 0 )
690
686
else
691
687
Reline ::IOGate . erase_after_cursor
692
688
move_cursor_down ( 1 )
@@ -695,10 +691,6 @@ def just_move_cursor
695
691
next
696
692
end
697
693
@output . write line
698
- if Reline ::IOGate . win? and calculate_width ( line , true ) == Reline ::IOGate . get_screen_size . last
699
- # A newline is automatically inserted if a character is rendered at eol on command prompt.
700
- @rest_height -= 1 if @rest_height > 0
701
- end
702
694
@output . flush
703
695
if @first_prompt
704
696
@first_prompt = false
You can’t perform that action at this time.
0 commit comments