diff options
| author | James McCoy <jamessan@jamessan.com> | 2017-03-19 13:14:49 -0400 |
|---|---|---|
| committer | James McCoy <jamessan@jamessan.com> | 2017-03-19 13:19:24 -0400 |
| commit | 934137fb489f0c99c32abe32e32f683e0ba3d40f (patch) | |
| tree | 525696f264bedbccb1d3c6e87145694fcd0979c6 /src/nvim/testdir | |
| parent | 0cab62ad6fc642c06e4249dccac092dd71b0cb3e (diff) | |
| download | rneovim-934137fb489f0c99c32abe32e32f683e0ba3d40f.tar.gz rneovim-934137fb489f0c99c32abe32e32f683e0ba3d40f.tar.bz2 rneovim-934137fb489f0c99c32abe32e32f683e0ba3d40f.zip | |
vim-patch:8.0.0116
Problem: When reading English help and using CTRl-] the language from
'helplang' is used.
Solution: Make help tag jumps keep the language. (Tatsuki, test by Hirohito
Higashi, closes vim/vim#1249)
https://github.com/vim/vim/commit/6dbf66aa3e2197ce41f2b1cc7602bb9c15840548
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_help_tagjump.vim | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_help_tagjump.vim b/src/nvim/testdir/test_help_tagjump.vim index aabfe40537..1ca0f722cf 100644 --- a/src/nvim/testdir/test_help_tagjump.vim +++ b/src/nvim/testdir/test_help_tagjump.vim @@ -162,4 +162,36 @@ func Test_help_complete() endtry endfunc +func Test_help_respect_current_file_lang() + try + let list = [] + call s:doc_config_setup() + + if has('multi_lang') + function s:check_help_file_ext(help_keyword, ext) + exec 'help ' . a:help_keyword + call assert_equal(a:ext, expand('%:e')) + call feedkeys("\<C-]>", 'tx') + call assert_equal(a:ext, expand('%:e')) + pop + helpclose + endfunc + + set rtp+=Xdir1/doc-ab + set rtp+=Xdir1/doc-ja + + set helplang=ab + call s:check_help_file_ext('test-char', 'abx') + call s:check_help_file_ext('test-char@ja', 'jax') + set helplang=ab,ja + call s:check_help_file_ext('test-char@ja', 'jax') + call s:check_help_file_ext('test-char@en', 'txt') + endif + catch + call assert_exception('X') + finally + call s:doc_config_teardown() + endtry +endfunc + " vim: shiftwidth=2 sts=2 expandtab |