view ci/if_ver-cmd.vim @ 31251:e8ac01ad4be9 v9.0.0959

patch 9.0.0959: error when using the "File Settings / Text Width" menu Commit: https://github.com/vim/vim/commit/8b336a6614463fb9ce72db24d00c5aef4f22697e Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 27 15:51:46 2022 +0000 patch 9.0.0959: error when using the "File Settings / Text Width" menu Problem: Error when using the "File Settings / Text Width" menu. Solution: Use str2nr(). (closes https://github.com/vim/vim/issues/11624)
author Bram Moolenaar <Bram@vim.org>
date Sun, 27 Nov 2022 17: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>)