Fix block cursor problems and temporal cursor seek in visual+prompt