How to repair an air conditioner on a 1989 Nissan 300ZX that blows cold when idling and warm air when driving?

it is a vacuum leak-replace the vacuum line from the right side along the right front-tiny vacuum line probably split