Moving markers when inserting text, a buggy mess