fix(panes): backspace pane name regression (#4346)

* fix(panes): backspace pane name regression

* docs(changelog): add PR
This commit is contained in:
Aram Drevekenin 2025-08-06 11:39:41 +02:00 committed by GitHub
parent 1398e1eefc
commit a3cfa0316f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View file

@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
## [Unreleased] ## [Unreleased]
* fix: pane rename backspace regression (https://github.com/zellij-org/zellij/pull/4346)
## [0.43.0] - 2025-08-05 ## [0.43.0] - 2025-08-05
* feat: multiple select and bulk pane actions (https://github.com/zellij-org/zellij/pull/4169 and https://github.com/zellij-org/zellij/pull/4171, https://github.com/zellij-org/zellij/pull/4221 and https://github.com/zellij-org/zellij/pull/4286) * feat: multiple select and bulk pane actions (https://github.com/zellij-org/zellij/pull/4169 and https://github.com/zellij-org/zellij/pull/4171, https://github.com/zellij-org/zellij/pull/4221 and https://github.com/zellij-org/zellij/pull/4286)

View file

@ -4619,7 +4619,14 @@ impl Tab {
self.get_active_pane_mut(client_id) self.get_active_pane_mut(client_id)
.with_context(|| format!("no active pane found for client {client_id}")) .with_context(|| format!("no active pane found for client {client_id}"))
.map(|active_pane| { .map(|active_pane| {
active_pane.update_name(&clean_string_from_control_and_linebreak(s)); let to_update = match s {
"\u{007F}" | "\u{0008}" => {
// delete and backspace keys
s
},
_ => &clean_string_from_control_and_linebreak(s),
};
active_pane.update_name(&to_update);
})?; })?;
Ok(()) Ok(())
} }