Skip to content

Commit 87329b6

Browse files
authored
Merge pull request #1439 from Textualize/fix-tree-overflow
Fix tree overflow
2 parents c3e4dfe + b116996 commit 87329b6

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ 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+
## [0.8.1] - 2022-12-25
9+
10+
### Fixed
11+
12+
- Fix for overflowing tree issue https://github.com/Textualize/textual/issues/1425
813

914
## [0.8.0] - 2022-12-22
1015

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 = "0.8.0"
3+
version = "0.8.1"
44
homepage = "https://github.com/Textualize/textual"
55
description = "Modern Text User Interface framework"
66
authors = ["Will McGugan <[email protected]>"]

src/textual/widgets/_tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ def get_guides(style: Style) -> tuple[str, str, str, str]:
787787
segments = line_pad(segments, 0, pad_width - guides.cell_len, line_style)
788788
self._line_cache[cache_key] = segments
789789

790-
segments = line_crop(segments, x1, x2, width)
790+
segments = line_crop(segments, x1, x2, Segment.get_line_length(segments))
791791

792792
return segments
793793

0 commit comments

Comments
 (0)