Mercurial > vim
diff src/mbyte.c @ 24246:35603c7991d7 v8.2.2664
patch 8.2.2664: Vim9: not enough function arguments checked for string
Commit: https://github.com/vim/vim/commit/32105ae88f3aa6a6af30336f0bc9f8eb81292cd7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 27 18:59:25 2021 +0100
patch 8.2.2664: Vim9: not enough function arguments checked for string
Problem: Vim9: not enough function arguments checked for string.
Solution: Check in balloon functions. Refactor function arguments.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 27 Mar 2021 19:00:04 +0100 |
parents | 083f07f99e20 |
children | 7b84cf514dd8 |
line wrap: on
line diff
--- a/src/mbyte.c +++ b/src/mbyte.c @@ -5551,7 +5551,7 @@ f_setcellwidths(typval_T *argvars, typva void f_charclass(typval_T *argvars, typval_T *rettv UNUSED) { - if (check_for_string(&argvars[0], 1) == FAIL) + if (check_for_string_arg(argvars, 0) == FAIL) return; rettv->vval.v_number = mb_get_class(argvars[0].vval.v_string); }