mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.1.0055: complete test has wrong order of arguments
Problem: Complete test has wrong order of arguments. Wrong type for sentinel variable. Solution: Swap arguments, use VAR_UNKNOWN. (Ozaki Kiichi)
This commit is contained in:
@@ -4799,7 +4799,7 @@ call_imactivatefunc(int active)
|
|||||||
|
|
||||||
argv[0].v_type = VAR_NUMBER;
|
argv[0].v_type = VAR_NUMBER;
|
||||||
argv[0].vval.v_number = active ? 1 : 0;
|
argv[0].vval.v_number = active ? 1 : 0;
|
||||||
argv[1].v_type = VAR_NUMBER;
|
argv[1].v_type = VAR_UNKNOWN;
|
||||||
(void)call_func_retnr(p_imaf, 1, argv, FALSE);
|
(void)call_func_retnr(p_imaf, 1, argv, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -126,15 +126,15 @@ func Test_completefunc_args()
|
|||||||
|
|
||||||
set completefunc=CompleteFunc
|
set completefunc=CompleteFunc
|
||||||
call feedkeys("i\<C-X>\<C-U>\<Esc>", 'x')
|
call feedkeys("i\<C-X>\<C-U>\<Esc>", 'x')
|
||||||
call assert_equal(s:args[0], [1, 1])
|
call assert_equal([1, 1], s:args[0])
|
||||||
call assert_equal(s:args[1][0], 0)
|
call assert_equal(0, s:args[1][0])
|
||||||
set completefunc=
|
set completefunc=
|
||||||
|
|
||||||
let s:args = []
|
let s:args = []
|
||||||
set omnifunc=CompleteFunc
|
set omnifunc=CompleteFunc
|
||||||
call feedkeys("i\<C-X>\<C-O>\<Esc>", 'x')
|
call feedkeys("i\<C-X>\<C-O>\<Esc>", 'x')
|
||||||
call assert_equal(s:args[0], [1, 1])
|
call assert_equal([1, 1], s:args[0])
|
||||||
call assert_equal(s:args[1][0], 0)
|
call assert_equal(0, s:args[1][0])
|
||||||
set omnifunc=
|
set omnifunc=
|
||||||
|
|
||||||
bwipe!
|
bwipe!
|
||||||
|
@@ -761,6 +761,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
55,
|
||||||
/**/
|
/**/
|
||||||
54,
|
54,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user