Mercurial > vim
view src/typemap @ 35463:fd2a8067aee3
runtime(nohlsearch): simplify mapping
Commit: https://github.com/vim/vim/commit/aeca7176f3b7bdc2d698938062f6cad802fea783
Author: Maxim Kim <habamax@gmail.com>
Date: Wed Jun 19 19:42:47 2024 +0200
runtime(nohlsearch): simplify mapping
Use <cmd> instead of <expr> with execute(...)[-1]
closes: #15047
Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 19 Jun 2024 20:00:06 +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}\")