aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-07-01 14:27:12 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-07-15 23:07:28 -0400
commit5d933310c875908b81ece4f831f72a311f5eb14e (patch)
treeb29714d1d7a7ae7ffdacf2f45b3bafc6e0e1c83c /src
parent263d62f628ee611c883b216bd9098484293d46a0 (diff)
downloadrneovim-5d933310c875908b81ece4f831f72a311f5eb14e.tar.gz
rneovim-5d933310c875908b81ece4f831f72a311f5eb14e.tar.bz2
rneovim-5d933310c875908b81ece4f831f72a311f5eb14e.zip
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) https://github.com/vim/vim/commit/bd9a0c611ce08f8dce033537bc2f110987b99802
Diffstat (limited to 'src')
-rw-r--r--src/nvim/testdir/test_filter_cmd.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_filter_cmd.vim b/src/nvim/testdir/test_filter_cmd.vim
index 3d802f9530..6f40a902e1 100644
--- a/src/nvim/testdir/test_filter_cmd.vim
+++ b/src/nvim/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"}])