Skip to content

Commit

Permalink
Add clarification to docs based on issue #4145
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Feb 12, 2024
1 parent f5fa7ee commit f1c21a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/textual/document/_document_navigator.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ def is_start_of_wrapped_line(self, location: Location) -> bool:
def is_end_of_document_line(self, location: Location) -> bool:
"""True if the location is at the end of a line in the document.
Note that the "end" of a line is equal to its length (one greater
than the final index), since there is a space at the end of the line
for the cursor to rest.
Args:
location: The location to examine.
Expand Down

0 comments on commit f1c21a7

Please sign in to comment.