This commit is contained in:
easong-openai
2025-08-01 04:34:40 -07:00
parent 1aad659eba
commit 9f45d477e5
2 changed files with 0 additions and 7 deletions

View File

@@ -43,9 +43,6 @@ pub(crate) struct ChatComposer<'a> {
ctrl_c_quit_hint: bool,
use_shift_enter_hint: bool,
dismissed_file_popup_token: Option<String>,
// When set, suppress reopening the slash-command popup while the first-line
// '/token' remains equal to this value. Cleared when the first line no longer
// starts with '/'.
dismissed_command_popup_token: Option<String>,
current_file_query: Option<String>,
pending_pastes: Vec<(String, String)>,
@@ -222,8 +219,6 @@ impl ChatComposer<'_> {
(InputResult::None, true)
}
Input { key: Key::Esc, .. } => {
// Hide popup without modifying text. Remember current '/token' so
// we don't immediately reopen until the token changes.
let first_line = self
.textarea
.lines()
@@ -612,7 +607,6 @@ impl ChatComposer<'_> {
.unwrap_or("");
let input_starts_with_slash = first_line.starts_with('/');
// Determine the current '/token' on the first line (may be empty).
let current_cmd_token: Option<String> = if input_starts_with_slash {
if let Some(stripped) = first_line.strip_prefix('/') {
let token = stripped.trim_start();

View File

@@ -124,7 +124,6 @@ impl CommandPopup {
self.selected_idx = Some(idx + 1);
}
Some(_idx_last) => {
// Wrap around when moving down from the last item.
self.selected_idx = Some(0);
}
None => {