diff src/evalfunc.c @ 17676:14ac8c31e598 v8.1.1835

patch 8.1.1835: cannot use printf() as a method commit https://github.com/vim/vim/commit/fd8ca21b3ff207e44891aef922935d4adcd140cf Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 10 00:13:30 2019 +0200 patch 8.1.1835: cannot use printf() as a method Problem: Cannot use printf() as a method. Solution: Pass the base as the second argument to printf().
author Bram Moolenaar <Bram@vim.org>
date Sat, 10 Aug 2019 00:15:05 +0200
parents d63b44015f4d
children 55704f587945
line wrap: on
line diff
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -733,7 +733,7 @@ static funcentry_T global_functions[] =
     {"pow",		2, 2, 0,	  f_pow},
 #endif
     {"prevnonblank",	1, 1, 0,	  f_prevnonblank},
-    {"printf",		1, 19, 0,	  f_printf},
+    {"printf",		1, 19, FEARG_2,	  f_printf},
 #ifdef FEAT_JOB_CHANNEL
     {"prompt_setcallback", 2, 2, 0,	  f_prompt_setcallback},
     {"prompt_setinterrupt", 2, 2, 0,	  f_prompt_setinterrupt},