Mercurial > vim
view src/typemap @ 10302:210af8588e8a v8.0.0047
commit https://github.com/vim/vim/commit/50e5376926dc2ec4a26a7a16f8f0f3213c4afdf0
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 27 14:49:15 2016 +0200
patch 8.0.0047
Problem: Crash when using the preview window from an unnamed buffer.
(lifepillar)
Solution: Do not clear the wrong buffer. (closes https://github.com/vim/vim/issues/1200)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 27 Oct 2016 15:00: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}\")