mirror of
https://github.com/neovim/neovim.git
synced 2026-08-30 11:02:01 +00:00
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.
6b915c0c0e
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user