Restrict queued-message editing to its dedicated binding (#39064)

## What changed

- Stop treating Vim normal-mode history-up as an alias for editing the latest queued message.
- Continue to edit queued messages through the configured `chat.edit_queued_message` binding.

GitOrigin-RevId: d830e0976a38725e948d420c1a5f374bb13fe945
This commit is contained in:
Benjamin Carlsson authored and copyberry committed 2026-08-17 20:02:50 +00:00
1 parent b6e153c985
commit 1aa3a68e7b
4 files changed
+2 -108

No files matched your search

+1 -12
View File
@@ -111,18 +111,7 @@ impl ChatWidget {
}
if key_event.kind == KeyEventKind::Press
&& (self.chat_keymap.edit_queued_message.is_pressed(key_event)
|| (self.bottom_pane.composer_is_empty()
&& self
.bottom_pane
.keymap_contexts()
.contains(crate::keymap::KeymapContext::VimNormal)
&& self
.bottom_pane
.runtime_keymap()
.vim_normal
.move_up
.is_pressed(key_event)))
&& self.chat_keymap.edit_queued_message.is_pressed(key_event)
&& self.has_queued_follow_up_messages()
&& self.bottom_pane.no_modal_or_popup_active()
{