diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-07-27 19:33:14 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-07-27 19:33:14 +0000 |
commit | 2240aeb4cb1d1465e20e9e2de07220dc11da98c6 (patch) | |
tree | f0fa8af17b03284903214ace851ebe3024a71a4c /src/eval.c | |
parent | bf96fb42342855aa2625664475f6c850a5d862cd (diff) |
updated for version 7.1-042v7.1.042
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/eval.c b/src/eval.c index 10df05b42a..1b26747388 100644 --- a/src/eval.c +++ b/src/eval.c @@ -7108,7 +7108,7 @@ static struct fst {"getftype", 1, 1, f_getftype}, {"getline", 1, 2, f_getline}, {"getloclist", 1, 1, f_getqflist}, - {"getmatches", 0, 0, f_getmatches}, + {"getmatches", 0, 0, f_getmatches}, {"getpos", 1, 1, f_getpos}, {"getqflist", 0, 0, f_getqflist}, {"getreg", 0, 2, f_getreg}, @@ -12526,9 +12526,11 @@ f_matchadd(argvars, rettv) if (grp == NULL || pat == NULL) return; if (argvars[2].v_type != VAR_UNKNOWN) + { prio = get_tv_number_chk(&argvars[2], &error); - if (argvars[3].v_type != VAR_UNKNOWN) - id = get_tv_number_chk(&argvars[3], &error); + if (argvars[3].v_type != VAR_UNKNOWN) + id = get_tv_number_chk(&argvars[3], &error); + } if (error == TRUE) return; if (id >= 1 && id <= 3) |