This fixes snapping with wide-characters
this should handle partial modification cases