aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-06-22 15:19:01 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-06-23 18:17:10 -0400
commit2813c83ea10b157974bdff7ceec9c3fc7f0d3380 (patch)
tree3092b55c53ea20775aa1bd0bc64ad8437257ada7 /src
parent6558e02b95d94a8be60757cc39df227836ec1f9c (diff)
downloadrneovim-2813c83ea10b157974bdff7ceec9c3fc7f0d3380.tar.gz
rneovim-2813c83ea10b157974bdff7ceec9c3fc7f0d3380.tar.bz2
rneovim-2813c83ea10b157974bdff7ceec9c3fc7f0d3380.zip
vim-patch:8.1.1519: 'backupskip' may contain duplicates
Problem: 'backupskip' may contain duplicates. Solution: Add the P_NODUP flag. (Tom Ryder) https://github.com/vim/vim/commit/06e2c81f6d213d197aa60019b33a263cd5176d68
Diffstat (limited to 'src')
-rw-r--r--src/nvim/testdir/test_options.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim
index ecfc84432a..28576709a3 100644
--- a/src/nvim/testdir/test_options.vim
+++ b/src/nvim/testdir/test_options.vim
@@ -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()