mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 10:56:31 +00:00
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:
@@ -391,6 +391,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()
|
||||
|
Reference in New Issue
Block a user