Mercurial > vim
diff src/testdir/test_options.vim @ 17039:d726d8cce996 v8.1.1519
patch 8.1.1519: 'backupskip' may contain duplicates
commit https://github.com/vim/vim/commit/06e2c81f6d213d197aa60019b33a263cd5176d68
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 12 19:05:48 2019 +0200
patch 8.1.1519: 'backupskip' may contain duplicates
Problem: 'backupskip' may contain duplicates.
Solution: Add the P_NODUP flag. (Tom Ryder)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 12 Jun 2019 19:15:06 +0200 |
parents | 19ca17f9e155 |
children | 5cda6165a5c1 |
line wrap: on
line diff
--- 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()