From 18f168848695184d9b050522537af5bed86fcfbf Mon Sep 17 00:00:00 2001 From: Hakan Seven Date: Mon, 15 Jun 2026 13:46:27 +0300 Subject: [PATCH] Revert "fix(input): honor @ / # coordinate prefixes during dynamic input" This reverts commit df616482e2dcea791dfce497986633fe14081181. --- src/app/update.rs | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/src/app/update.rs b/src/app/update.rs index 1c51ebaa..bee9796c 100644 --- a/src/app/update.rs +++ b/src/app/update.rs @@ -1033,19 +1033,7 @@ impl OpenCADStudio { // reshaping the field set when going polar → cartesian // (Distance → X, Y) or 2-D → 3-D (X, Y → X, Y, Z). // See #35. - // A leading `@` / `#` escapes dynamic-input capture: the - // whole coordinate is typed into the command line so the - // prefix's relative / absolute meaning is honoured even - // while DYN fields are showing. Without this, the prefix - // lands in the command line while the digits go to a DYN - // field, splitting the value. - let coord_prefix_escape = self.command_line.input.starts_with('@') - || self.command_line.input.starts_with('#'); - if s == "," - && self.dyn_input - && !self.tabs[i].dyn_fields.is_empty() - && !coord_prefix_escape - { + if s == "," && self.dyn_input && !self.tabs[i].dyn_fields.is_empty() { self.dyn_comma_advance(); self.command_line.autocomplete_cursor = None; return self.focus_cmd_input(); @@ -1059,11 +1047,7 @@ impl OpenCADStudio { c.is_ascii_digit() || matches!(c, '.' | '-' | '+' | '*' | '/' | '^' | '%' | '(' | ')') }); - if dyn_field_char - && self.dyn_input - && !self.tabs[i].dyn_fields.is_empty() - && !coord_prefix_escape - { + if dyn_field_char && self.dyn_input && !self.tabs[i].dyn_fields.is_empty() { let a = self.tabs[i] .dyn_active .min(self.tabs[i].dyn_fields.len() - 1);