The Goodbye Girl (1977)

Paula knows that, in romance, actors all follow the same stage instruction—Exit. Without warning, her actor boyfriend splits for a movie role, and sublet their Manhattan apartment to Elliot, an actor.