diff --git a/CHANGELOG.md b/CHANGELOG.md index 32e39835a5..a6bbb814d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,9 +5,9 @@ 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/). -## Unreleased +## [0.81.0] - 2024-09-25 -### Add +### Added - Added `x_axis` and `y_axis` parameters to `Widget.scroll_to_region` https://github.com/Textualize/textual/pull/5047 - Added `Tree.move_cursor_to_line` https://github.com/Textualize/textual/pull/5052 @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Fixed widgets occasionally not getting Resize events https://github.com/Textualize/textual/pull/5048 - Fixed tree regression https://github.com/Textualize/textual/pull/5052 +- Fixed glitch with single line inline widget https://github.com/Textualize/textual/pull/5054 ## [0.80.1] - 2024-09-24 @@ -2405,6 +2406,7 @@ https://textual.textualize.io/blog/2022/11/08/version-040/#version-040 - New handler system for messages that doesn't require inheritance - Improved traceback handling +[0.81.0]: https://github.com/Textualize/textual/compare/v0.80.1...v0.81.0 [0.80.1]: https://github.com/Textualize/textual/compare/v0.80.0...v0.80.1 [0.80.0]: https://github.com/Textualize/textual/compare/v0.79.0...v0.80.0 [0.79.0]: https://github.com/Textualize/textual/compare/v0.78.0...v0.79.0 diff --git a/pyproject.toml b/pyproject.toml index b96e9c75e4..c2a0c63605 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "textual" -version = "0.80.1" +version = "0.81.0" homepage = "https://github.com/Textualize/textual" repository = "https://github.com/Textualize/textual" documentation = "https://textual.textualize.io/" diff --git a/src/textual/_compositor.py b/src/textual/_compositor.py index 8eb6d063b7..6136db8e1d 100644 --- a/src/textual/_compositor.py +++ b/src/textual/_compositor.py @@ -149,7 +149,9 @@ def render_segments(self, console: Console) -> str: if not last: append("\n") if self.clear: - append("\n\x1b[J") # Clear down + if len(self.strips) > 1: + append("\n") + append("\x1b[J") # Clear down if len(self.strips) > 1: back_lines = len(self.strips) if self.clear else len(self.strips) - 1 append(f"\x1b[{back_lines}A\r") # Move cursor back to original position