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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased

### Fixed

- Fixed `TextArea` cursor display on wrapped lines https://github.com/Textualize/textual/pull/6196

## [6.5.0] - 2025-10-31

### Added
Expand Down
3 changes: 2 additions & 1 deletion src/textual/widgets/_text_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,7 @@ def render_line(self, y: int) -> Strip:
scroll_x, scroll_y = self.scroll_offset
absolute_y = scroll_y + y
selection = self.selection
_, cursor_y = self._cursor_offset
cache_key = (
self.size,
scroll_x,
Expand All @@ -1243,7 +1244,7 @@ def render_line(self, y: int) -> Strip:
if (
self._cursor_visible
and self.cursor_blink
and absolute_y == selection.end[0]
and absolute_y == cursor_y
)
else None
),
Expand Down
Loading