view ci/if_ver-cmd.vim @ 22178:6666ace75ef5 v8.2.1638

patch 8.2.1638: leaking memory when popup filter function can't be called Commit: https://github.com/vim/vim/commit/8e9be208ea58149c4e522166a6194da18a2eced7 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 8 22:55:26 2020 +0200 patch 8.2.1638: leaking memory when popup filter function can't be called Problem: Leaking memory when popup filter function can't be called. Solution: Don't return too soon.
author Bram Moolenaar <Bram@vim.org>
date Tue, 08 Sep 2020 23:00: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>)