Mercurial > vim
view src/typemap @ 29777:f1c5bd4acbbc v9.0.0228
patch 9.0.0228: crash when pattern looks below the last line
Commit: https://github.com/vim/vim/commit/13ed494bb5edc5a02d0ed0feabddb68920f88570
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Aug 19 13:59:25 2022 +0100
patch 9.0.0228: crash when pattern looks below the last line
Problem: Crash when pattern looks below the last line.
Solution: Consider invalid lines to be empty. (closes https://github.com/vim/vim/issues/10938)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 19 Aug 2022 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}\")