File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1573,7 +1573,7 @@ def move_screen_up(current_line_start_row):
1573
1573
if self .stdin .has_focus :
1574
1574
cursor_row , cursor_column = divmod (
1575
1575
wcswidth (self .current_stdouterr_line )
1576
- + wcswidth (self .stdin .current_line [: self .stdin .cursor_offset ] ),
1576
+ + wcswidth (self .stdin .current_line , self .stdin .cursor_offset ),
1577
1577
width ,
1578
1578
)
1579
1579
assert cursor_row >= 0 and cursor_column >= 0 , (cursor_row , cursor_column )
@@ -1597,7 +1597,7 @@ def move_screen_up(current_line_start_row):
1597
1597
(
1598
1598
wcswidth (self .current_cursor_line_without_suggestion .s )
1599
1599
- wcswidth (self .current_line )
1600
- + wcswidth (self .current_line [: self .cursor_offset ] )
1600
+ + wcswidth (self .current_line , self .cursor_offset )
1601
1601
)
1602
1602
+ self .number_of_padding_chars_on_current_cursor_line (),
1603
1603
width ,
You can’t perform that action at this time.
0 commit comments