Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion src/textual/_xterm_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"enter": "\r",
"tab": "\t",
}
"""Explcit characters for keys, used in Kitty protocol parsing"""
"""Explicit characters for keys, used in Kitty protocol parsing"""


class XTermParser(Parser[Message]):
Expand Down
2 changes: 1 addition & 1 deletion src/textual/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ def is_same(self, content: Content) -> bool:
def get_optimal_width(self, rules: RulesMap, container_width: int) -> int:
"""Get optimal width of the Visual to display its content.

The exact definition of "optimal width" is dependant on the Visual, but
The exact definition of "optimal width" is dependent on the Visual, but
will typically be wide enough to display output without cropping or wrapping,
and without superfluous space.

Expand Down
2 changes: 1 addition & 1 deletion src/textual/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ def grow_maximum(self, other: Spacing) -> Spacing:
class Shape:
"""An arbitrary shape defined by a sequence of regions.

This class currently exists to filter widgets within a shape defined when the user is slecting text.
This class currently exists to filter widgets within a shape defined when the user is selecting text.

"""

Expand Down
4 changes: 2 additions & 2 deletions src/textual/selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,10 @@ def ordered_offsets(self) -> tuple[Offset, Offset]:
return start_offset, end_offset

def update_end(self, pointer_offset: Offset, select_end: SelectEnd) -> SelectState:
"""Update the state with the selction end.
"""Update the state with the selection end.

Args:
pointer_offset: Current mosue position.
pointer_offset: Current mouse position.
select_end: Selection end.

Returns:
Expand Down