0
0
mirror of https://github.com/vim/vim.git synced 2025-10-13 06:54:15 -04:00

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().
This commit is contained in:
Bram Moolenaar
2019-08-10 00:13:30 +02:00
parent 22a0c0c4ec
commit fd8ca21b3f
4 changed files with 17 additions and 9 deletions

View File

@@ -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},