Mercurial > vim
view src/typemap @ 25911:d6d31972c76d v8.2.3489
patch 8.2.3489: ml_get error after search with range
Commit: https://github.com/vim/vim/commit/35a319b77f897744eec1155b736e9372c9c5575f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 9 13:58:55 2021 +0100
patch 8.2.3489: ml_get error after search with range
Problem: ml_get error after search with range.
Solution: Limit the line number to the buffer line count.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 09 Oct 2021 15:00:03 +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}\")