diff options
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index e74a82a91f..ea633c719f 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -8487,7 +8487,7 @@ f_synID(typval_T *argvars UNUSED, typval_T *rettv) lnum = tv_get_lnum(argvars); // -1 on type error col = (linenr_T)tv_get_number(&argvars[1]) - 1; // -1 on type error - trans = (int)tv_get_number_chk(&argvars[2], &transerr); + trans = (int)tv_get_bool_chk(&argvars[2], &transerr); if (!transerr && lnum >= 1 && lnum <= curbuf->b_ml.ml_line_count && col >= 0 && col < (long)STRLEN(ml_get(lnum))) |