Skip to content

Commit 91080e5

Browse files
authored
Merge pull request #5936 from Textualize/keyline-glitch
Fix keyline glitch
2 parents d5ab640 + 4846a3b commit 91080e5

File tree

4 files changed

+193
-0
lines changed

4 files changed

+193
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1717
- Potential breaking change: Changed default `query_one` and `query_exactly_one` search to breadth first https://github.com/Textualize/textual/pull/5930
1818
- Cursor is now visible by default when in read only mode (restoring pre 3.6.0 behavior) https://github.com/Textualize/textual/pull/5934
1919

20+
### Fixed
21+
22+
- Fixed issue with Keylines not scrolling https://github.com/Textualize/textual/pull/5936
23+
2024
## [3.6.0] - 2025-07-06
2125

2226
### Fixed

src/textual/widget.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4284,6 +4284,10 @@ def _check_refresh(self) -> None:
42844284
else:
42854285
if self._scroll_required:
42864286
self._scroll_required = False
4287+
if self.styles.keyline[0] != "none":
4288+
# TODO: Feels like a hack
4289+
# Perhaps there should be an explicit mechanism for backgrounds to refresh when scrolled?
4290+
self._set_dirty()
42874291
screen.post_message(messages.UpdateScroll())
42884292
if self._repaint_required:
42894293
self._repaint_required = False

0 commit comments

Comments
 (0)