Mercurial > vim
view src/typemap @ 27575:9f70df0b2967 v8.2.4314
patch 8.2.4314: test fails where lines are skipped
Commit: https://github.com/vim/vim/commit/8cbf2499179db39a46e700ab04d0b36e22bcc1bb
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 6 20:28:13 2022 +0000
patch 8.2.4314: test fails where lines are skipped
Problem: Test fails where lines are skipped.
Solution: Only give an error when not skipping commands.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 06 Feb 2022 21:30:02 +0100 |
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}\")