Fix cursor becoming invisible when completion popup is opened