tell-k / vim-autopep8

autopep8 plugin for Vim
http://www.vim.org/scripts/script.php?script_id=4614
MIT License
277 stars 51 forks source link

Command drops unsaved changes #20

Closed marciomazza closed 8 years ago

marciomazza commented 8 years ago

If you used the command (:Autopep8) before saving the editor simply drops unsaved changes and works on the last saved content.

Arnoldnuo commented 8 years ago

How to fix the issue?

marciomazza commented 8 years ago

Did this happen before my commit 52869e876fff86455b2a8362be835cd5271216ae?

The first thing that comes to mind is to save the changes before running the command. Or maybe do the operation in a temp file with a copy of the current content...