adapt input position to rest of text