Fix cursor highlighting