454090fe40
Changing &encoding when &fileencoding != &encoding causes two problems. First, it's completely unsafe to change &encoding after vim is running, since there may be characters that can't be translated from one encoding to another, which can make vim crash. Second, this actually loses information about the buffer's encoding. When the encrypted file is opened later, it won't be in the same encoding as before it was saved. Changing user's data on them is unacceptable. Signed-off-by: James McCoy <jamessan@jamessan.com> |
||
---|---|---|
plugin |