view ci/if_ver-cmd.vim @ 27255:8c43e3d1a6e5 v8.2.4156

patch 8.2.4156: fileinfo message overwrites echo'ed message Commit: https://github.com/vim/vim/commit/726f7f91fd17e3e7eb39614a20d10ea83c134df0 Author: Rob Pilling <robpilling@gmail.com> Date: Thu Jan 20 14:44:38 2022 +0000 patch 8.2.4156: fileinfo message overwrites echo'ed message Problem: Fileinfo message overwrites echo'ed message. Solution: Reset need_fileinfo when displaying a message. (Rob Pilling, closes #9569)
author Bram Moolenaar <Bram@vim.org>
date Thu, 20 Jan 2022 15:45:03 +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>)