aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-07-19 06:48:16 -0400
committerGitHub <noreply@github.com>2017-07-19 06:48:16 -0400
commitc40093f47a32fa4fc885ecae1f2f78cdb30d635d (patch)
treece03edf98f3e701eb67b48a40e1fe79ea61a0b03 /src/nvim/testdir
parent26124b480028354d7d81d93c0e45ca516effdaa6 (diff)
parentb98ea04226d5ae7f2d8f9650101f87a848145ca4 (diff)
downloadrneovim-c40093f47a32fa4fc885ecae1f2f78cdb30d635d.tar.gz
rneovim-c40093f47a32fa4fc885ecae1f2f78cdb30d635d.tar.bz2
rneovim-c40093f47a32fa4fc885ecae1f2f78cdb30d635d.zip
Merge pull request #7027 from lonerover/vim-8.0.0003
vim-patch:8.0.0003
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_bufwintabinfo.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_bufwintabinfo.vim b/src/nvim/testdir/test_bufwintabinfo.vim
index 5c916e2dd7..1c9350c416 100644
--- a/src/nvim/testdir/test_bufwintabinfo.vim
+++ b/src/nvim/testdir/test_bufwintabinfo.vim
@@ -87,9 +87,17 @@ function Test_get_buf_options()
endfunc
function Test_get_win_options()
+ if has('folding')
+ set foldlevel=999
+ endif
+ set list
let opts = getwinvar(1, '&')
call assert_equal(v:t_dict, type(opts))
call assert_equal(0, opts.linebreak)
+ call assert_equal(1, opts.list)
+ if has('folding')
+ call assert_equal(999, opts.foldlevel)
+ endif
if has('signs')
call assert_equal('auto', opts.signcolumn)
endif
@@ -97,7 +105,12 @@ function Test_get_win_options()
let opts = gettabwinvar(1, 1, '&')
call assert_equal(v:t_dict, type(opts))
call assert_equal(0, opts.linebreak)
+ call assert_equal(1, opts.list)
if has('signs')
call assert_equal('auto', opts.signcolumn)
endif
+ set list&
+ if has('folding')
+ set foldlevel=0
+ endif
endfunc