view ci/if_ver-cmd.vim @ 20949:62912ad41aff v8.2.1026

patch 8.2.1026: Vim9: cannot break the line after "->" Commit: https://github.com/vim/vim/commit/a3b7fdc1bb227897f41b8f2958a48d0a26292ff7 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 21 14:12:17 2020 +0200 patch 8.2.1026: Vim9: cannot break the line after "->" Problem: Vim9: cannot break the line after "->". Solution: Check for a continuation line after "->", "[" and ".". Ignore trailing white space.
author Bram Moolenaar <Bram@vim.org>
date Sun, 21 Jun 2020 14:15:03 +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>)