Skip to content

Commit 2d6c800

Browse files
committed
patch 7.4.1046
Problem: No test coverage for menus. Solution: Load the standard menus and check there is no error.
1 parent 47707f6 commit 2d6c800

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

src/testdir/test_alot.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
source test_backspace_opt.vim
55
source test_lispwords.vim
6+
source test_menu.vim
67
source test_searchpos.vim
78
source test_set.vim
89
source test_sort.vim

src/testdir/test_menu.vim

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
" Test that the system menu can be loaded.
2+
3+
func Test_load_menu()
4+
try
5+
source $VIMRUNTIME/menu.vim
6+
catch
7+
call assert_false(1, 'error while loading menus: ' . v:exception)
8+
endtry
9+
endfunc

src/version.c

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

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
1046,
744746
/**/
745747
1045,
746748
/**/

0 commit comments

Comments
 (0)