fix #768 - don't add macro if state needs to group commands
Merge pull request #776 from my-personal-forks/fix-768-macros

fix #768 - don't add macro if state needs to group commands