added code to shift insert and delete regions, e.g. to better match up braces in c-like languages.