Ben Schmidt wrote:

> The attached one-line patch alters the behaviour of retrieving the
> 'key' option.  Rather than always returning "*****" it returns the
> empty string if 'key' is empty. While still protecting any key that is
> used, this is useful to be able to determine whether or not a file is
> encrypted, so you can, for example, disable swap files with an
> autocommand depending on whether a file is encrypted or not. It
> shouldn't cause any compatibility issues, as no programmer should have
> relied on 'key' always being "*****"; they could just hard code
> "*****" themselves!
> 
> Would you be able to include this?

Makes a lot of sense.  I'll include it.

-- 
How To Keep A Healthy Level Of Insanity:
17. When the money comes out the ATM, scream "I won!, I won! 3rd
    time this week!!!!!"

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui