aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-08-07 22:09:45 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-08-14 18:20:29 -0400
commitaf58bee2f4da185d1a695657e8c57a8877983124 (patch)
treeb88801b8b7284cc84bc0078a5033049eb7f95d5f /src/nvim/testdir
parentbc2c75cbd7860b1f1a0246fc9b11b0d68132a786 (diff)
downloadrneovim-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/testdir')
-rw-r--r--src/nvim/testdir/test_options.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim
index 04a5c62f66..9e8da74db7 100644
--- a/src/nvim/testdir/test_options.vim
+++ b/src/nvim/testdir/test_options.vim
@@ -576,3 +576,13 @@ func Test_opt_boolean()
set number&
endfunc
+" Test for setting option value containing spaces with isfname+=32
+func Test_isfname_with_options()
+ set isfname+=32
+ setlocal keywordprg=:term\ help.exe
+ call assert_equal(':term help.exe', &keywordprg)
+ set isfname&
+ setlocal keywordprg&
+endfunc
+
+" vim: shiftwidth=2 sts=2 expandtab