diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-01-20 14:34:24 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-01-20 14:34:24 +0800 |
commit | aa4eadd2bee7d389edc6284078bb43c700de5b0f (patch) | |
tree | 6cf4bdb05214e705166cfa1da257137703fe8ce6 /src/nvim/testdir | |
parent | 431915fe6af4e176a84a60c95ad7aa9d36b71e50 (diff) | |
download | rneovim-aa4eadd2bee7d389edc6284078bb43c700de5b0f.tar.gz rneovim-aa4eadd2bee7d389edc6284078bb43c700de5b0f.tar.bz2 rneovim-aa4eadd2bee7d389edc6284078bb43c700de5b0f.zip |
vim-patch:8.2.0128: cannot list options one per line
Problem: Cannot list options one per line.
Solution: Use ":set!" to list one option per line.
https://github.com/vim/vim/commit/6b915c0c0ee7ef82f8d3d310a4345e098cb929b0
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_options.vim | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim index 5946732937..2312df5450 100644 --- a/src/nvim/testdir/test_options.vim +++ b/src/nvim/testdir/test_options.vim @@ -51,7 +51,7 @@ func Test_wildoptions() call assert_equal('tagfile', &wildoptions) endfunc -function! Test_options() +func Test_options_command() let caught = 'ok' try options @@ -88,7 +88,7 @@ function! Test_options() " close option-window close -endfunction +endfunc function! Test_path_keep_commas() " Test that changing 'path' keeps two commas. @@ -368,6 +368,13 @@ func Test_set_all() set tw& iskeyword& splitbelow& endfunc +func Test_set_one_column() + let out_mult = execute('set all')->split("\n") + let out_one = execute('set! all')->split("\n") + " one column should be two to four times as many lines + call assert_inrange(len(out_mult) * 2, len(out_mult) * 4, len(out_one)) +endfunc + func Test_set_values() " The file is only generated when running "make test" in the src directory. if filereadable('opt_test.vim') |