cursor_last_line実装