changed autopairing to not do it if caret is immediately to the left of a letter or number