vim-patch:8.1.1519: 'backupskip' may contain duplicates

Problem:    'backupskip' may contain duplicates.
Solution:   Add the P_NODUP flag. (Tom Ryder)
06e2c81f6d
This commit is contained in:
Jan Edmund Lazo
2019-06-22 15:19:01 -04:00
parent 6558e02b95
commit 2813c83ea1

View File

@@ -391,6 +391,15 @@ func Test_backupskip()
call assert_true(found, var . ' (' . varvalue . ') not in option bsk: ' . &bsk) call assert_true(found, var . ' (' . varvalue . ') not in option bsk: ' . &bsk)
endif endif
endfor 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 endfunc
func Test_copy_winopt() func Test_copy_winopt()