Skip to content

Commit bd9a0c6

Browse files
committed
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)
1 parent 4dbc262 commit bd9a0c6

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/testdir/test_filter_cmd.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,11 @@ func Test_filter_commands()
105105
unlet test_filter_c
106106

107107
" Test filtering :set command
108+
let helplang=&helplang
109+
set helplang=en
108110
let res = join(split(execute("filter /^help/ set"), "\n")[1:], " ")
109111
call assert_match('^\s*helplang=\w*$', res)
112+
let &helplang=helplang
110113

111114
" Test filtering :llist command
112115
call setloclist(0, [{"filename": "/path/vim.c"}, {"filename": "/path/vim.h"}, {"module": "Main.Test"}])

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,8 @@ static char *(features[]) =
792792

793793
static int included_patches[] =
794794
{ /* Add new patch number below this line */
795+
/**/
796+
505,
795797
/**/
796798
504,
797799
/**/

0 commit comments

Comments
 (0)