Enhanced cursor positioning after inserting a snippet.