prezto-inactive-community-fork / prezto

THIS FORK HAS SHUT DOWN – use the original!
https://github.com/sorin-ionescu/prezto
MIT License
115 stars 18 forks source link

Don't load pfunctions from vi swap files #31

Closed paulmelnikow closed 7 years ago

paulmelnikow commented 7 years ago

This modifies the pfunction regex so that it will not load functions from a vi backup files.

This prevents bad surprises in which functions from swap files are inadvertently loaded.

paulmelnikow commented 7 years ago

@johnpneumann Would you care to take a look at this?

johnpneumann commented 7 years ago

@paulmelnikow - Ran through it and verified it no longer loads vim swap files. lgtm.