1
0
forked from aniani/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 #3591)
This commit is contained in:
Bram Moolenaar
2018-11-03 19:00:14 +01:00
parent 4dbc262764
commit bd9a0c611c
2 changed files with 5 additions and 0 deletions

View File

@@ -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"}])

View File

@@ -792,6 +792,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
505,
/**/ /**/
504, 504,
/**/ /**/