From a845e45100880e8f8bd37f808c136460e5f7dda7 Mon Sep 17 00:00:00 2001 From: ramox81 <184937705+ramox81@users.noreply.github.com> Date: Wed, 23 Sep 2026 16:22:17 +0300 Subject: [PATCH] ATTACH : start the placement within the same command Co-Authored-By: Claude Opus 5.5 --- src/app/commands/xref_attach.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/commands/xref_attach.rs b/src/app/commands/xref_attach.rs index bcec577b3..e21ee4458 100644 --- a/src/app/commands/xref_attach.rs +++ b/src/app/commands/xref_attach.rs @@ -23,7 +23,9 @@ impl OpenCADStudio { ("ATTACH", true) => Some(Task::done(Message::AttachPick)), ("XATTACH", true) => Some(Task::done(Message::XAttachPick)), // A file named on the command line skips the picker. - ("ATTACH", false) => Some(Task::done(Message::AttachPickResult(Ok( + // Handled at once, so the placement it starts belongs to this + // command line (automation included). + ("ATTACH", false) => Some(self.update(Message::AttachPickResult(Ok( std::path::PathBuf::from(rest.trim_matches('"')), )))), ("XATTACH", false) => {