Fixes off-by-one in cursor display.