Before the appearance of the first semi-auto handguns at the end of the 19th century a revolver was often referred to as a pistol!
The term pistol today can equally mean either a revolver or a semi-auto handgun,(or a percussion or flintlock handgun) the term is not exclusive to the new fangled semi auto design.