UPDATEFIELD: an undo step on every run

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ramox81andClaude Opus 5.5 committed 2026-10-07 11:03:57 +03:00
1 parent 6da3fea563
commit ac186d3967
4 files changed
+18 -5

No files matched your search

+1 -3
View File
@@ -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(",")))
}