From 920f445605a2dec819e53e1af5c4de3595f8dd43 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Sun, 15 Mar 2026 15:12:10 +0800 Subject: [PATCH] Add changelog --- CHANGELOG.md | 2 ++ yazi-binding/src/elements/border.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ccecb23f..08843e64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -55,6 +55,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/): ### Improved - Reduce memory allocations by using Lua 5.5 external strings ([#3634]) +- Reuse previewed and spotted widgets when possible ([#3765]) ## [v26.1.22] @@ -1682,3 +1683,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/): [#3744]: https://github.com/sxyazi/yazi/pull/3744 [#3748]: https://github.com/sxyazi/yazi/pull/3748 [#3757]: https://github.com/sxyazi/yazi/pull/3757 +[#3765]: https://github.com/sxyazi/yazi/pull/3765 diff --git a/yazi-binding/src/elements/border.rs b/yazi-binding/src/elements/border.rs index dab761b3..d4b1f940 100644 --- a/yazi-binding/src/elements/border.rs +++ b/yazi-binding/src/elements/border.rs @@ -56,8 +56,8 @@ impl Widget for Border { for title in self.titles { block = match title { - (ratatui::widgets::TitlePosition::Top, line) => block.title(line), - (ratatui::widgets::TitlePosition::Bottom, line) => block.title(line), + (ratatui::widgets::TitlePosition::Top, line) => block.title_top(line), + (ratatui::widgets::TitlePosition::Bottom, line) => block.title_bottom(line), }; }