mirror of
https://github.com/zellij-org/zellij.git
synced 2025-01-02 22:25:25 +03:00
fix(tabs): delete characters when renaming tab (#226)
This commit is contained in:
parent
dbbafae606
commit
a174989990
@ -100,6 +100,9 @@ impl ZellijTile for State {
|
||||
self.new_name.clear();
|
||||
}
|
||||
Key::Char(c) => self.new_name = format!("{}{}", self.new_name, c),
|
||||
Key::Backspace | Key::Delete => {
|
||||
self.new_name.pop();
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
@ -294,6 +294,10 @@ impl Screen {
|
||||
self.update_tabs();
|
||||
self.render();
|
||||
}
|
||||
"\u{007F}" | "\u{0008}" => {
|
||||
//delete and backspace keys
|
||||
self.tabname_buf.pop();
|
||||
}
|
||||
c => {
|
||||
self.tabname_buf.push_str(c);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user