Fixed bug when undoing shift-taw was not working. (Still a cursor position bug).