diff src/testdir/test_filter_cmd.vim @ 14987:5b06b642fbee v8.1.0505

patch 8.1.0505: filter command test may fail if helplang is not set commit https://github.com/vim/vim/commit/bd9a0c611ce08f8dce033537bc2f110987b99802 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 3 19:00:14 2018 +0100 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 https://github.com/vim/vim/issues/3591)
author Bram Moolenaar <Bram@vim.org>
date Sat, 03 Nov 2018 19:15:07 +0100
parents c5ec5ddbe814
children 9c206a78ec04
line wrap: on
line diff
--- a/src/testdir/test_filter_cmd.vim
+++ b/src/testdir/test_filter_cmd.vim
@@ -105,8 +105,11 @@ func Test_filter_commands()
   unlet test_filter_c
 
   " Test filtering :set command
+  let helplang=&helplang
+  set helplang=en
   let res = join(split(execute("filter /^help/ set"), "\n")[1:], " ")
   call assert_match('^\s*helplang=\w*$', res)
+  let &helplang=helplang
 
   " Test filtering :llist command
   call setloclist(0, [{"filename": "/path/vim.c"}, {"filename": "/path/vim.h"}, {"module": "Main.Test"}])