Skip to content

Commit 9092095

Browse files
committed
fix and bump
1 parent 29c0181 commit 9092095

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 6 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+
## [0.8.2] - 2022-12-28
9+
10+
### Fixed
11+
12+
- Fixed issue with TextLog.clear() https://github.com/Textualize/textual/issues/1447
13+
814
## [0.8.1] - 2022-12-25
915

1016
### Fixed

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

src/textual/widgets/_text_log.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ def write(
131131

132132
def clear(self) -> None:
133133
"""Clear the text log."""
134-
del self.lines[:]
134+
self.lines.clear()
135+
self._line_cache.clear()
135136
self._start_line = 0
136137
self.max_width = 0
137138
self.virtual_size = Size(self.max_width, len(self.lines))

0 commit comments

Comments
 (0)