summaryrefslogtreecommitdiffstats
path: root/src/diff.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2021-07-21 19:09:09 +0200
committerBram Moolenaar <Bram@vim.org>2021-07-21 19:09:09 +0200
commitcd9172077bc8c0aafddf2e5367cc0ae2c00c8ff7 (patch)
treed460cabb1f58286f763089e7a9552be6c21059f3 /src/diff.c
parent189663bdac1156237c49925f77bd197c1bdea12c (diff)
patch 8.2.3194: Vim9: argument types are not checked at compile timev8.2.3194
Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks, simplify some. (Yegappan Lakshmanan, closes #8598)
Diffstat (limited to 'src/diff.c')
-rw-r--r--src/diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff.c b/src/diff.c
index 59dc658eb7..a47259e1af 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -3294,7 +3294,7 @@ f_diff_hlID(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
int col;
if (in_vim9script()
- && (check_for_string_or_number_arg(argvars,0) == FAIL
+ && (check_for_lnum_arg(argvars,0) == FAIL
|| check_for_number_arg(argvars, 1) == FAIL))
return;