Update renderCursor/renderSelection