Mercurial > vim
comparison src/testdir/test_help_tagjump.vim @ 10444:2edda415c28a v8.0.0116
commit https://github.com/vim/vim/commit/6dbf66aa3e2197ce41f2b1cc7602bb9c15840548
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Dec 1 21:32:32 2016 +0100
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 #1249)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 01 Dec 2016 21:45:04 +0100 |
parents | 1de5916d9403 |
children | 260100346566 |
comparison
equal
deleted
inserted
replaced
10443:db8b1dc897a9 | 10444:2edda415c28a |
---|---|
139 finally | 139 finally |
140 call s:doc_config_teardown() | 140 call s:doc_config_teardown() |
141 endtry | 141 endtry |
142 endfunc | 142 endfunc |
143 | 143 |
144 func Test_help_respect_current_file_lang() | |
145 try | |
146 let list = [] | |
147 call s:doc_config_setup() | |
148 | |
149 if has('multi_lang') | |
150 function s:check_help_file_ext(help_keyword, ext) | |
151 exec 'help ' . a:help_keyword | |
152 call assert_equal(a:ext, expand('%:e')) | |
153 call feedkeys("\<C-]>", 'tx') | |
154 call assert_equal(a:ext, expand('%:e')) | |
155 pop | |
156 helpclose | |
157 endfunc | |
158 | |
159 set rtp+=Xdir1/doc-ab | |
160 set rtp+=Xdir1/doc-ja | |
161 | |
162 set helplang=ab | |
163 call s:check_help_file_ext('test-char', 'abx') | |
164 call s:check_help_file_ext('test-char@ja', 'jax') | |
165 set helplang=ab,ja | |
166 call s:check_help_file_ext('test-char@ja', 'jax') | |
167 call s:check_help_file_ext('test-char@en', 'txt') | |
168 endif | |
169 catch | |
170 call assert_exception('X') | |
171 finally | |
172 call s:doc_config_teardown() | |
173 endtry | |
174 endfunc | |
175 | |
144 " vim: shiftwidth=2 sts=2 expandtab | 176 " vim: shiftwidth=2 sts=2 expandtab |