Mercurial > vim
view src/typemap @ 23821:bfc1ae959d9d v8.2.2452
patch 8.2.2452: no completion for the 'filetype' option
Commit: https://github.com/vim/vim/commit/d5e8c92816f35ea1a9298084238a08f35958baa6
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 2 21:10:01 2021 +0100
patch 8.2.2452: no completion for the 'filetype' option
Problem: No completion for the 'filetype' option.
Solution: Add filetype completion. (Martin Tournoij, closes https://github.com/vim/vim/issues/7747)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 02 Feb 2021 21:15:03 +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}\")