fix and bump

This commit is contained in:
Will McGugan
2022-12-28 10:27:59 +00:00
parent 29c01812cf
commit 9092095bc6
3 changed files with 9 additions and 2 deletions

View File

@@ -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/).
## [0.8.2] - 2022-12-28
### Fixed
- Fixed issue with TextLog.clear() https://github.com/Textualize/textual/issues/1447
## [0.8.1] - 2022-12-25
### Fixed

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "textual"
version = "0.8.1"
version = "0.8.2"
homepage = "https://github.com/Textualize/textual"
description = "Modern Text User Interface framework"
authors = ["Will McGugan <will@textualize.io>"]

View File

@@ -131,7 +131,8 @@ class TextLog(ScrollView, can_focus=True):
def clear(self) -> None:
"""Clear the text log."""
del self.lines[:]
self.lines.clear()
self._line_cache.clear()
self._start_line = 0
self.max_width = 0
self.virtual_size = Size(self.max_width, len(self.lines))