forked from 1b-agent/opencadstudio-upstream
UPDATEFIELD: an undo step on every run
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
6da3fea563
commit
ac186d3967
4 files changed
+18
-5
No files matched your search
@@ -434,9 +434,7 @@ impl CadCommand for UpdateFieldCommand {
|
||||
}
|
||||
|
||||
fn on_enter(&mut self) -> CmdResult {
|
||||
if self.selected.is_empty() {
|
||||
return CmdResult::Cancel;
|
||||
}
|
||||
// An empty selection still runs (the reference keeps an undo step).
|
||||
let handles: Vec<String> = self.selected.iter().map(|h| format!("{:X}", h.value())).collect();
|
||||
CmdResult::Dispatch(format!("_UPDATEFIELDRUN {}", handles.join(",")))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user