view ci/if_ver-cmd.vim @ 31535:8b9771b827c1 v9.0.1100

patch 9.0.1100: a hashtab with many removed items is not cleaned up Commit: https://github.com/vim/vim/commit/d0883faac6a74f777c9a6be9d035c59ee1c969c5 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 26 13:51:26 2022 +0000 patch 9.0.1100: a hashtab with many removed items is not cleaned up Problem: A hashtab with many removed items is not cleaned up. Solution: Re-hash a hashtab even when the size didn't change if too many items were removed.
author Bram Moolenaar <Bram@vim.org>
date Mon, 26 Dec 2022 15:00:04 +0100
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>)