From a3cfa0316fd20d558c28b795f775c9c08c78fd64 Mon Sep 17 00:00:00 2001 From: Aram Drevekenin Date: Wed, 6 Aug 2025 11:39:41 +0200 Subject: [PATCH] fix(panes): backspace pane name regression (#4346) * fix(panes): backspace pane name regression * docs(changelog): add PR --- CHANGELOG.md | 1 + zellij-server/src/tab/mod.rs | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c6e0c04..2d1b894d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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/) ## [Unreleased] +* fix: pane rename backspace regression (https://github.com/zellij-org/zellij/pull/4346) ## [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) diff --git a/zellij-server/src/tab/mod.rs b/zellij-server/src/tab/mod.rs index 97714aca..3f98554f 100644 --- a/zellij-server/src/tab/mod.rs +++ b/zellij-server/src/tab/mod.rs @@ -4619,7 +4619,14 @@ impl Tab { self.get_active_pane_mut(client_id) .with_context(|| format!("no active pane found for client {client_id}")) .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(()) }