You've missed the part where islamist butchered the leaders of the actual 1979 revolution. In reality it was:
unpopular shah -> 1979 revolution -> islamists take control, prison and kill the leftists of 1979 revolution.