Add some scripts to adapt an bug in ST3

if modified text is after current cursor, text replace will cause an
incorrect on_selection_modified event