Mercurial > vim
view src/typemap @ 21100:acfda84f5661 v8.2.1101
patch 8.2.1101: no error when using wrong arguments for setqflist()
Commit: https://github.com/vim/vim/commit/be7a50c22f63478a6e64fe6b932a847830191b95
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jun 30 22:11:44 2020 +0200
patch 8.2.1101: no error when using wrong arguments for setqflist()
Problem: No error when using wrong arguments for setqflist() or
setloclist().
Solution: Check for the error.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 30 Jun 2020 22:15:05 +0200 |
parents | dec4338a7da2 |
children |
line wrap: on
line source
TYPEMAP VIWIN T_VIOBJNOMUNGE VIBUF T_VIOBJNOMUNGE INPUT T_VIOBJNOMUNGE if (sv_isa($arg, \"${ntype}\")) { IV tmp = SvIV((SV*)SvRV($arg)); $var = INT2PTR($type, tmp); if (!tmp) croak(\"$ntype no longer exists\"); } else croak(\"$var is not of type ${ntype}\")