diff src/mbyte.c @ 14075:320956bddcef v8.1.0055

patch 8.1.0055: complete test has wrong order of arguments commit https://github.com/vim/vim/commit/52d3aaeea4c85406f46e2051729e4f007f83b35e Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 13 21:27:24 2018 +0200 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)
author Christian Brabandt <cb@256bit.org>
date Wed, 13 Jun 2018 21:30:06 +0200
parents c1fcfafa8d1a
children 65ded7626193
line wrap: on
line diff
--- a/src/mbyte.c
+++ b/src/mbyte.c
@@ -4799,7 +4799,7 @@ call_imactivatefunc(int active)
 
     argv[0].v_type = VAR_NUMBER;
     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);
 }