Mercurial > vim
view ci/if_ver-cmd.vim @ 32584:2d1eba13035c v9.0.1624
patch 9.0.1624: crash when calling object constructor
Commit: https://github.com/vim/vim/commit/5ca05fa59e587f9724306d4788c5dde07fc7225b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 10 16:45:13 2023 +0100
patch 9.0.1624: crash when calling object constructor
Problem: Crash when calling object constructor from legacy script. (Israel
Chauca Fuentes)
Solution: Pass a pointer for "ufunc". (closes #12502)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 10 Jun 2023 18:00:06 +0200 |
parents | 27ff44268da5 |
children |
line wrap: on
line source
" Provide 'PrintVer' command to print the interface versions. func s:print_ver(lang, ...) if has(a:lang) exec a:lang join(a:000) else echo 'N/A' endif echo '' endfunc command -nargs=+ PrintVer call <SID>print_ver(<f-args>)