Skip to content

Commit ae7e61c

Browse files
julio-bchrisbra
authored andcommitted
patch 9.1.0342: tests: test_taglist fails when 'helplang' contains non-english
Problem: tests: test_taglist fails when 'helplang' contains non-english Solution: Allow 1 or 2 tagfiles for now (Julio B) related: #14312 closes: #14566 Signed-off-by: Julio B <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 29269a7 commit ae7e61c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/testdir/test_taglist.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ func Test_tagfiles()
100100

101101
help
102102
let tf = tagfiles()
103-
call assert_equal(1, len(tf))
103+
" if 'helplang includes another language, then we may find
104+
" 2 tagfiles (e.g.: for EN and RU)
105+
" we may need to adjust this, if further translated help files are included
106+
call assert_inrange(1, 2, len(tf))
104107
call assert_equal(fnamemodify(expand('$VIMRUNTIME/doc/tags'), ':p:gs?\\?/?'),
105108
\ fnamemodify(tf[0], ':p:gs?\\?/?'))
106109
helpclose

src/version.c

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

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
342,
707709
/**/
708710
341,
709711
/**/

0 commit comments

Comments
 (0)