Update YCM flags to close preview window