[ISSUE] Cursor location not updated inside a macro

It did your repro.
Everything is working correctly.
I cannot confirm the issue.