Hi

On 24/11/2016 20:46, Bram Moolenaar wrote:

Patch 8.0.0101
Problem:    Some options are not strictly checked.
Solution:   Add flags for strickter checks.
Files:      src/option.c


*** ../vim-8.0.0100/src/option.c        2016-11-24 18:30:55.715444785 +0100
--- src/option.c        2016-11-24 21:38:32.823206218 +0100
***************
*** 992,998 ****
                            (char_u *)NULL, PV_NONE,
  #endif
                            {(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT},
!     {"dictionary",  "dict", P_STRING|P_EXPAND|P_VI_DEF|P_ONECOMMA|P_NODUP,
  #ifdef FEAT_INS_EXPAND
                            (char_u *)&p_dict, PV_DICT,
  #else
--- 992,998 ----
                            (char_u *)NULL, PV_NONE,
  #endif
                            {(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT},
!     {"dictionary",  "dict", 
P_STRING|P_EXPAND|P_VI_DEF|P_ONECOMMA|P_NODUP|P_NFNAME,
  #ifdef FEAT_INS_EXPAND
                            (char_u *)&p_dict, PV_DICT,
  #else

This has broken the dictionary option as you can no longer specify a filepath -

:set dictionary=a/b
E474: Invalid argument: dictionary=a/b

Not surprising as P_NFNAME excludes path separators - should it be extended to do full filepath validation if not normalisation?

TTFN

Mike
--
Make it too tough for the enemy to get in, and you can't get out!

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui