Fix cursor patching for operation of more than one caracter (for exemple for snippets)