better comment

This commit is contained in:
pap
2026-01-15 17:50:07 +00:00
parent 8bf607dc81
commit ed5f688c87

View File

@@ -352,7 +352,7 @@ impl ChatComposer {
self.textarea.insert_element(&placeholder);
self.pending_pastes.push((placeholder, pasted));
} else if char_count > 1
// Keep shell commands like `!open /path/to.png` intact; users expect the raw path.
// Keep shell commands like `!open /path/to.png` intact (not replacing with [Image]) so they can be run in shell
&& !self.is_user_shell_command_input()
&& self.handle_paste_image_path(pasted.clone())
{