From fbdffdd046d4cf20af93d419f4a3c693a11b80ed Mon Sep 17 00:00:00 2001
From: Sergey Fedorov <barracuda@macos-powerpc.org>
Date: Wed, 22 Jul 2026 19:45:46 +0000
Subject: [PATCH 07/30] expand: fix `{:.*}` precision - cursor wasn't advanced
 past the `*`

The `.*` branch set up the precision argument correctly but left the
parse cursor on the `*`, so it was then rejected as an unknown type
specifier. Seen in `hx` 0.7.0 (`format!("{:.*}", places, x)`).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011M9MvswSD3mEeJcBm6S8z7
---
 src/expand/format_args.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/expand/format_args.cpp b/src/expand/format_args.cpp
index 168749e7..22def503 100644
--- a/src/expand/format_args.cpp
+++ b/src/expand/format_args.cpp
@@ -404,6 +404,7 @@ namespace {
                             }
                             args.prec = next_free;
                             next_free ++;
+                            s ++;
                         }
                         else if( ::std::isdigit(*s) ) {
                             unsigned int val = 0;
-- 
2.43.0

