Mercurial > vim
view src/typemap @ 28061:050d49de7a66 v8.2.4555
patch 8.2.4555: getmousepos() returns the wrong column
Commit: https://github.com/vim/vim/commit/986b0fd0c550d9834a3cc45dd87555c13152c391
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 13 12:06:07 2022 +0000
patch 8.2.4555: getmousepos() returns the wrong column
Problem: getmousepos() returns the wrong column. (Ernie Rael)
Solution: Limit to the text size, not the number of bytes.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 13 Mar 2022 13:15:04 +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}\")