Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text area read only #4151

Merged
merged 19 commits into from
Feb 13, 2024
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

darrenburns marked this conversation as resolved.
Show resolved Hide resolved
Args:
location: The location to examine.

Expand Down
Loading