Fix cursor positioning after inserting an inline snippet.