Tomas,
Apologies for not coming back to you earlier about this. I haven't been able to test this properly until now.
I have been testing it now, and, frankly, I think this is not an issue with ViEmu. As far as I can tell, the difference in behavior lies with Visual Assist. If you right click and then select "Surround With", they have a different behavior that if the "VAssistX.SurroundSelectionWithBraces" command is sent. You can check that this also happens without ViEmu: the non-VS way to issue a VS command is to go to the QuickFind field, and type the name with ">" prepended.
Thus, w/o ViEmu at all (or with it disable), you can just select whatever you want, and try these two ways of surrounding it with braces:
- Click on the QuickFind box in the standard toolbar, type >VAssistX.SurroundSelectionWithBraces, and press return
- Right-click on the selection, and select "Surround With" there, then select braces.
The operations show the difference you describe. There is nothing I can really do there.
I know ViEmu's scriptability, configurability and integration are limited, and I could provide much more sophisticated methods, but the difference you mention is nothing I can change.
Regards,
-- Jon