Mercurial > vim
view src/typemap @ 30811:c02b74b87608 v9.0.0740
patch 9.0.0740: prop_add_list() gives multiple errors for invalid argument
Commit: https://github.com/vim/vim/commit/4997f2a605e15261c4f825494324371f271ef6a8
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 13 14:00:45 2022 +0100
patch 9.0.0740: prop_add_list() gives multiple errors for invalid argument
Problem: prop_add_list() gives multiple errors for invalid argument.
Solution: Only give one error message.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 13 Oct 2022 15:15:07 +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}\")