File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 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):
15761576 + wcswidth (self .stdin .current_line [: self .stdin .cursor_offset ]),
15771577 width ,
15781578 )
1579- assert cursor_column >= 0 , cursor_column
1579+ assert cursor_row >= 0 and cursor_column >= 0 , ( cursor_row , cursor_column )
15801580 elif self .coderunner .running : # TODO does this ever happen?
15811581 cursor_row , cursor_column = divmod (
15821582 (
@@ -1585,7 +1585,8 @@ def move_screen_up(current_line_start_row):
15851585 ),
15861586 width ,
15871587 )
1588- assert cursor_column >= 0 , (
1588+ assert cursor_row >= 0 and cursor_column >= 0 , (
1589+ cursor_row ,
15891590 cursor_column ,
15901591 len (self .current_cursor_line ),
15911592 len (self .current_line ),
@@ -1601,7 +1602,8 @@ def move_screen_up(current_line_start_row):
16011602 + self .number_of_padding_chars_on_current_cursor_line (),
16021603 width ,
16031604 )
1604- assert cursor_column >= 0 , (
1605+ assert cursor_row >= 0 and cursor_column >= 0 , (
1606+ cursor_row ,
16051607 cursor_column ,
16061608 len (self .current_cursor_line ),
16071609 len (self .current_line ),
You can’t perform that action at this time.
0 commit comments