diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/nvim/testdir/test_options.vim | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim index eedf8c23c4..ecfc84432a 100644 --- a/src/nvim/testdir/test_options.vim +++ b/src/nvim/testdir/test_options.vim @@ -385,8 +385,10 @@ func Test_backupskip()    for var in  ['$TMPDIR', '$TMP', '$TEMP']      if exists(var)        let varvalue = substitute(expand(var), '\\', '/', 'g') -      let found = (index(bsklist, varvalue.'/*') >= 0) -      call assert_true(found, var . ' not in option bsk: ' . &bsk) +      let varvalue = substitute(varvalue, '/$', '', '') +      let varvalue .= '/*' +      let found = (index(bsklist, varvalue) >= 0) +      call assert_true(found, var . ' (' . varvalue . ') not in option bsk: ' . &bsk)      endif    endfor  endfunc  | 
