mirror of
https://github.com/codewhale-hq/Codewhale.git
synced 2026-11-07 17:09:13 -10:00
fix(tui): show the session rename prompt once (#7054)
Pressing r in /sessions turns the picker's header into the rename field
("New title: ..._") and also set the status row under it to the same
"New title: " prompt, so the prompt sat on two rows, with an empty copy
under the one being typed into. Clear the status instead. The header
carries the prompt, and the status row is still there for the
title-length error and the "Renamed to" receipt.
Signed-off-by: Lstarsky0 <[email protected]>
This commit is contained in:
1 parent
d7695dfaab
commit
57e726bf3c
1 file changed
+1
-1
@@ -1069,7 +1069,7 @@ impl ModalView for SessionPickerView {
|
||||
KeyCode::Char('r') | KeyCode::Char('R') => {
|
||||
self.rename_mode = true;
|
||||
self.rename_input.clear();
|
||||
self.status = Some(tr(self.locale, MessageId::SessionsNewTitlePrompt).into_owned());
|
||||
self.status = None;
|
||||
ViewAction::None
|
||||
}
|
||||
KeyCode::Char('d') | KeyCode::Char('D') => {
|
||||
|
||||
Reference in new issue
Block a user