File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1576,7 +1576,7 @@ def move_screen_up(current_line_start_row):
1576
1576
+ wcswidth (self .stdin .current_line [: self .stdin .cursor_offset ]),
1577
1577
width ,
1578
1578
)
1579
- assert cursor_column >= 0 , cursor_column
1579
+ assert cursor_row >= 0 and cursor_column >= 0 , ( cursor_row , cursor_column )
1580
1580
elif self .coderunner .running : # TODO does this ever happen?
1581
1581
cursor_row , cursor_column = divmod (
1582
1582
(
@@ -1585,7 +1585,8 @@ def move_screen_up(current_line_start_row):
1585
1585
),
1586
1586
width ,
1587
1587
)
1588
- assert cursor_column >= 0 , (
1588
+ assert cursor_row >= 0 and cursor_column >= 0 , (
1589
+ cursor_row ,
1589
1590
cursor_column ,
1590
1591
len (self .current_cursor_line ),
1591
1592
len (self .current_line ),
@@ -1601,7 +1602,8 @@ def move_screen_up(current_line_start_row):
1601
1602
+ self .number_of_padding_chars_on_current_cursor_line (),
1602
1603
width ,
1603
1604
)
1604
- assert cursor_column >= 0 , (
1605
+ assert cursor_row >= 0 and cursor_column >= 0 , (
1606
+ cursor_row ,
1605
1607
cursor_column ,
1606
1608
len (self .current_cursor_line ),
1607
1609
len (self .current_line ),
You can’t perform that action at this time.
0 commit comments