add CursorMoved event to render corlor immediately in current line when editing the corlor value