diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-06-12 19:05:48 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-06-12 19:05:48 +0200 |
commit | 06e2c81f6d213d197aa60019b33a263cd5176d68 (patch) | |
tree | 543715f5f1781b192aae5ce3bbd5c9d2ee875a71 /src/testdir/test_options.vim | |
parent | 202d982b36d87cf91d992bd7e30d3223bdc72cd9 (diff) | |
download | vim-git-06e2c81f6d213d197aa60019b33a263cd5176d68.tar.gz |
patch 8.1.1519: 'backupskip' may contain duplicatesv8.1.1519
Problem: 'backupskip' may contain duplicates.
Solution: Add the P_NODUP flag. (Tom Ryder)
Diffstat (limited to 'src/testdir/test_options.vim')
-rw-r--r-- | src/testdir/test_options.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim index 13de71934..9d3065d15 100644 --- a/src/testdir/test_options.vim +++ b/src/testdir/test_options.vim @@ -419,6 +419,15 @@ func Test_backupskip() call assert_true(found, var . ' (' . varvalue . ') not in option bsk: ' . &bsk) endif endfor + + " Duplicates should be filtered out (option has P_NODUP) + let backupskip = &backupskip + set backupskip= + set backupskip+=/test/dir + set backupskip+=/other/dir + set backupskip+=/test/dir + call assert_equal('/test/dir,/other/dir', &backupskip) + let &backupskip = backupskip endfunc func Test_copy_winopt() |