Esc while there are queued messages drops the messages back into the composer (#2687)

https://github.com/user-attachments/assets/bbb427c4-cdc7-4997-a4ef-8156e8170742
This commit is contained in:
Jeremy Rose
2025-08-26 16:26:50 -07:00
committed by GitHub
parent eb161116f0
commit f2603a4e50
3 changed files with 75 additions and 5 deletions

View File

@@ -259,7 +259,7 @@ impl ChatComposer {
/// Replace the entire composer content with `text` and reset cursor.
pub(crate) fn set_text_content(&mut self, text: String) {
self.textarea.set_text(&text);
self.textarea.set_cursor(0);
self.textarea.set_cursor(usize::MAX);
self.sync_command_popup();
self.sync_file_search_popup();
}