fix move_to_line_end bug