text overlayer
remove all redundent markers
deals with different kinds of cursor movements