Mercurial > vim
view src/typemap @ 21477:8a0362947c3a v8.2.1289
patch 8.2.1289: crash when using a custom completion function
Commit: https://github.com/vim/vim/commit/c841afff6a89592f23710c6da5b0fea89b240937
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 25 14:11:55 2020 +0200
patch 8.2.1289: crash when using a custom completion function
Problem: Crash when using a custom completion function.
Solution: Initialize all of the expand_T. (closes https://github.com/vim/vim/issues/6532)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 25 Jul 2020 14:15:04 +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}\")