fix(panes): backspace pane name regression (#4346)
* fix(panes): backspace pane name regression * docs(changelog): add PR
This commit is contained in:
parent
1398e1eefc
commit
a3cfa0316f
2 changed files with 9 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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(())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue