Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Jan 14, 2025
1 parent 695c22f commit 2dde200
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions IPython/terminal/shortcuts/auto_suggest.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ def apply_transformation(self, ti: TransformationInput) -> Transformation:
We can resume showing the normal line, and say that some code may be hidden.
- the completions ends at the end of the buffer
We can just say that some code may be hidden.
And separately:
- the completions ends beyond the end of the buffer
We need to both say that some code may be hidden, and that some lines are not shown.
"""
last_line_number = ti.document.line_count - 1
is_last_line = ti.lineno == last_line_number
Expand All @@ -74,9 +74,9 @@ def apply_transformation(self, ti: TransformationInput) -> Transformation:

delta = ti.lineno - ti.document.cursor_position_row
suggestions = buffer.suggestion.text.splitlines()
suggestions_longer_than_buffer:bool = (len(suggestions) + ti.document.cursor_position_row > ti.document.line_count)


suggestions_longer_than_buffer: bool = (
len(suggestions) + ti.document.cursor_position_row > ti.document.line_count
)

if delta == 0:
suggestion = suggestions[0]
Expand Down

0 comments on commit 2dde200

Please sign in to comment.