don't advance cursor after execute code if there is a selection