Mercurial > vim
view ci/if_ver-cmd.vim @ 21939:8350bdbdbb28 v8.2.1519
patch 8.2.1519: Vim9: Ex command default range is not set
Commit: https://github.com/vim/vim/commit/c2af0afff5c44969ad7611ec2d47d0f52087fa7f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 23 21:06:02 2020 +0200
patch 8.2.1519: Vim9: Ex command default range is not set
Problem: Vim9: Ex command default range is not set.
Solution: When range is not given use default. (closes https://github.com/vim/vim/issues/6779)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 23 Aug 2020 21:15:04 +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>)