view ci/if_ver-cmd.vim @ 23600:f4347a61ed38 v8.2.2342

patch 8.2.2342: "char" functions may return wrong column in Insert mode Commit: https://github.com/vim/vim/commit/9145846b6aa411e3ab5c0d145b37808654352877 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 13 20:08:38 2021 +0100 patch 8.2.2342: "char" functions may return wrong column in Insert mode Problem: "char" functions return the wront column in Insert mode when the cursor is beyond the end of the line. Solution: Compute the column correctly. (Yegappan Lakshmanan, closes #7669)
author Bram Moolenaar <Bram@vim.org>
date Wed, 13 Jan 2021 20:15: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>)