This was already fixed on non-Darwin, but the fix missed that it was also reintroduced for the Darwin code path at the same time. Fixes: dd5d2482c9 ("emacs: Fix accidental double wrapping")
dd5d2482c9