diff options
| author | bfredl <bjorn.linse@gmail.com> | 2022-01-27 08:37:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-27 08:37:36 +0100 |
| commit | 480fbbe296d4cad860855fc62a9d8296e915c8df (patch) | |
| tree | 71a6c4d725a0430c555de7ee0efc2b4f1f78ca21 /src/nvim/testdir | |
| parent | 0813b9fde456b991ee5e7ea8a9da2c21a09a13c1 (diff) | |
| parent | aa4eadd2bee7d389edc6284078bb43c700de5b0f (diff) | |
| download | rneovim-480fbbe296d4cad860855fc62a9d8296e915c8df.tar.gz rneovim-480fbbe296d4cad860855fc62a9d8296e915c8df.tar.bz2 rneovim-480fbbe296d4cad860855fc62a9d8296e915c8df.zip | |
Merge pull request #17145 from zeertzjq/vim-8.2.0128
vim-patch:8.2.0128: cannot list options one per line
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') |