From c7019a36d5e5e091da99787290ffd27870d2c82a Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Wed, 25 Sep 2024 15:00:18 +0100 Subject: [PATCH 1/3] one line fix --- src/textual/_compositor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textual/_compositor.py b/src/textual/_compositor.py index 8eb6d063b7..df765b6b01 100644 --- a/src/textual/_compositor.py +++ b/src/textual/_compositor.py @@ -149,7 +149,7 @@ def render_segments(self, console: Console) -> str: if not last: append("\n") if self.clear: - append("\n\x1b[J") # Clear down + 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 From ba0b3accfa85f29d9e21433da4aa146aa60a94ca Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Wed, 25 Sep 2024 15:06:47 +0100 Subject: [PATCH 2/3] fix inline one line --- src/textual/_compositor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/textual/_compositor.py b/src/textual/_compositor.py index df765b6b01..6136db8e1d 100644 --- a/src/textual/_compositor.py +++ b/src/textual/_compositor.py @@ -149,6 +149,8 @@ def render_segments(self, console: Console) -> str: if not last: append("\n") if self.clear: + 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 From 4390365a2f3261a4ed69570844360a5f8de261c1 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Wed, 25 Sep 2024 15:44:57 +0100 Subject: [PATCH 3/3] version bump --- CHANGELOG.md | 6 ++++-- pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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/"