mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 19:06:31 +00:00
vim-patch:8.1.0505: filter command test may fail if helplang is not set
Problem: Filter command test may fail if helplang is not set.
Solution: Set 'helplang' for the test. (James McCoy, closes vim/vim#3591)
bd9a0c611c
This commit is contained in:
@@ -105,8 +105,11 @@ func Test_filter_commands()
|
|||||||
unlet test_filter_c
|
unlet test_filter_c
|
||||||
|
|
||||||
" Test filtering :set command
|
" Test filtering :set command
|
||||||
|
let helplang=&helplang
|
||||||
|
set helplang=en
|
||||||
let res = join(split(execute("filter /^help/ set"), "\n")[1:], " ")
|
let res = join(split(execute("filter /^help/ set"), "\n")[1:], " ")
|
||||||
call assert_match('^\s*helplang=\w*$', res)
|
call assert_match('^\s*helplang=\w*$', res)
|
||||||
|
let &helplang=helplang
|
||||||
|
|
||||||
" Test filtering :llist command
|
" Test filtering :llist command
|
||||||
call setloclist(0, [{"filename": "/path/vim.c"}, {"filename": "/path/vim.h"}, {"module": "Main.Test"}])
|
call setloclist(0, [{"filename": "/path/vim.c"}, {"filename": "/path/vim.h"}, {"module": "Main.Test"}])
|
||||||
|
Reference in New Issue
Block a user