mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
fix and bump
This commit is contained in:
@@ -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/)
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
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
|
## [0.8.1] - 2022-12-25
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "textual"
|
name = "textual"
|
||||||
version = "0.8.1"
|
version = "0.8.2"
|
||||||
homepage = "https://github.com/Textualize/textual"
|
homepage = "https://github.com/Textualize/textual"
|
||||||
description = "Modern Text User Interface framework"
|
description = "Modern Text User Interface framework"
|
||||||
authors = ["Will McGugan <will@textualize.io>"]
|
authors = ["Will McGugan <will@textualize.io>"]
|
||||||
|
|||||||
@@ -131,7 +131,8 @@ class TextLog(ScrollView, can_focus=True):
|
|||||||
|
|
||||||
def clear(self) -> None:
|
def clear(self) -> None:
|
||||||
"""Clear the text log."""
|
"""Clear the text log."""
|
||||||
del self.lines[:]
|
self.lines.clear()
|
||||||
|
self._line_cache.clear()
|
||||||
self._start_line = 0
|
self._start_line = 0
|
||||||
self.max_width = 0
|
self.max_width = 0
|
||||||
self.virtual_size = Size(self.max_width, len(self.lines))
|
self.virtual_size = Size(self.max_width, len(self.lines))
|
||||||
|
|||||||
Reference in New Issue
Block a user