diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-08-07 22:09:45 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-08-14 18:20:29 -0400 |
commit | af58bee2f4da185d1a695657e8c57a8877983124 (patch) | |
tree | b88801b8b7284cc84bc0078a5033049eb7f95d5f /src/nvim/option.c | |
parent | bc2c75cbd7860b1f1a0246fc9b11b0d68132a786 (diff) | |
download | rneovim-af58bee2f4da185d1a695657e8c57a8877983124.tar.gz rneovim-af58bee2f4da185d1a695657e8c57a8877983124.tar.bz2 rneovim-af58bee2f4da185d1a695657e8c57a8877983124.zip |
vim-patch:8.2.1386: backslash not removed afer space with space in 'isfname'
Problem: Backslash not removed afer space in option with space in
'isfname'.
Solution: Do remove backslash before space, also when it is in 'isfname'.
(Yasuhiro Matsumoto, closes vim/vim#6651)
https://github.com/vim/vim/commit/994b89d28dc54c896e00eba66e247addb0540272
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 168160834b..a70a634966 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -1355,11 +1355,11 @@ int do_set( // Disallow changing some options from modelines. if (opt_flags & OPT_MODELINE) { if (flags & (P_SECURE | P_NO_ML)) { - errmsg = (char_u *)_("E520: Not allowed in a modeline"); + errmsg = (char_u *)N_("E520: Not allowed in a modeline"); goto skip; } if ((flags & P_MLE) && !p_mle) { - errmsg = (char_u *)_( + errmsg = (char_u *)N_( "E992: Not allowed in a modeline when 'modelineexpr' is off"); goto skip; } @@ -1376,7 +1376,7 @@ int do_set( // Disallow changing some options in the sandbox if (sandbox != 0 && (flags & P_SECURE)) { - errmsg = (char_u *)_(e_sandbox); + errmsg = e_sandbox; goto skip; } @@ -1712,6 +1712,7 @@ int do_set( #ifdef BACKSLASH_IN_FILENAME && !((flags & P_EXPAND) && vim_isfilec(arg[1]) + && !ascii_iswhite(arg[1]) && (arg[1] != '\\' || (s == newval && arg[2] != '\\'))) |