Fix an issue where replacing the selection with a patterned expression would insert an additonal character
Fix an issue where replacing the selection with a patterned expression would insert an additonal character

arnog/mathlive,arnog/mathlive,arnog/mathlive,arnog/mathlive