Mercurial > vim
view ci/if_ver-cmd.vim @ 25230:658dfd6be868 v8.2.3151
patch 8.2.3151: Vim9: profiling fails if nested function is also profiled
Commit: https://github.com/vim/vim/commit/ffcfddc759e583471a1ed55e0938d042bf68c507
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 11 20:22:30 2021 +0200
patch 8.2.3151: Vim9: profiling fails if nested function is also profiled
Problem: Vim9: profiling fails if nested function is also profiled.
Solution: Use the compile type from the outer function. (closes https://github.com/vim/vim/issues/8543)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 11 Jul 2021 20:30:04 +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>)