Skip to content

Commit 3339d67

Browse files
authored
Merge pull request #5940 from Textualize/fix-textarea-select
Fix textarea select
2 parents 609385c + 2aba619 commit 3339d67

File tree

5 files changed

+186
-2
lines changed

5 files changed

+186
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [3.7.1] - 2025-07-09
9+
10+
### Fixed
11+
12+
- Fixed broken text selection with soft_wrap=False https://github.com/Textualize/textual/pull/5940
13+
814
## [3.7.0] - 2025-07-07
915

1016
### Added
@@ -2954,6 +2960,7 @@ https://textual.textualize.io/blog/2022/11/08/version-040/#version-040
29542960
- New handler system for messages that doesn't require inheritance
29552961
- Improved traceback handling
29562962

2963+
[3.7.1]: https://github.com/Textualize/textual/compare/v3.7.0...v3.7.1
29572964
[3.7.0]: https://github.com/Textualize/textual/compare/v3.6.0...v3.7.0
29582965
[3.6.0]: https://github.com/Textualize/textual/compare/v3.5.0...v3.6.0
29592966
[3.5.0]: https://github.com/Textualize/textual/compare/v3.4.0...v3.5.0

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "textual"
3-
version = "3.7.0"
3+
version = "3.7.1"
44
homepage = "https://github.com/Textualize/textual"
55
repository = "https://github.com/Textualize/textual"
66
documentation = "https://textual.textualize.io/"

src/textual/widgets/_text_area.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ def render_line(self, y: int) -> Strip:
11741174
absolute_y,
11751175
(
11761176
selection
1177-
if selection.contains_line(absolute_y)
1177+
if selection.contains_line(absolute_y) or self.soft_wrap
11781178
else selection.end[0] == absolute_y
11791179
),
11801180
(

0 commit comments

Comments
 (0)