Mercurial > vim
comparison src/search.c @ 25384:e8e2c4d33b9b v8.2.3229
patch 8.2.3229: Vim9: runtime and compile time type checks are not the same
Commit: https://github.com/vim/vim/commit/4490ec4e839e45a2e6923c265c7e9e64c240b805
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Tue Jul 27 22:00:44 2021 +0200
patch 8.2.3229: Vim9: runtime and compile time type checks are not the same
Problem: Vim9: runtime and compile time type checks are not the same.
Solution: Add more runtime type checks for builtin functions. (Yegappan
Lakshmanan, closes #8646)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 27 Jul 2021 22:15:06 +0200 |
parents | 078edc1821bf |
children | d4a710f06f02 |
comparison
equal
deleted
inserted
replaced
25383:510e4fcb5363 | 25384:e8e2c4d33b9b |
---|---|
4109 searchstat_T stat; | 4109 searchstat_T stat; |
4110 | 4110 |
4111 if (rettv_dict_alloc(rettv) == FAIL) | 4111 if (rettv_dict_alloc(rettv) == FAIL) |
4112 return; | 4112 return; |
4113 | 4113 |
4114 if (in_vim9script() && check_for_opt_dict_arg(argvars, 0) == FAIL) | |
4115 return; | |
4116 | |
4114 if (shortmess(SHM_SEARCHCOUNT)) // 'shortmess' contains 'S' flag | 4117 if (shortmess(SHM_SEARCHCOUNT)) // 'shortmess' contains 'S' flag |
4115 recompute = TRUE; | 4118 recompute = TRUE; |
4116 | 4119 |
4117 if (argvars[0].v_type != VAR_UNKNOWN) | 4120 if (argvars[0].v_type != VAR_UNKNOWN) |
4118 { | 4121 { |