Mercurial > vim
view src/typemap @ 31319:243c35fad9cb v9.0.0993
patch 9.0.0993: display errors when adding or removing text property type
Commit: https://github.com/vim/vim/commit/89469d157aea01513bde826b4519dd6b5fbceae4
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 2 20:46:26 2022 +0000
patch 9.0.0993: display errors when adding or removing text property type
Problem: Display errors when adding or removing text property type.
Solution: Perform a full redraw. Only use text properties for which the
type is defined. (closes #11655)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 02 Dec 2022 22:00:04 +0100 |
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}\")