Mercurial > vim
view ci/if_ver-cmd.vim @ 28895:228154db3ce6 v8.2.4970
patch 8.2.4970: "eval 123" gives an error, "eval 'abc'" does not
Commit: https://github.com/vim/vim/commit/0d03263fd731986c0eee1a08e0f1b19f1bc3a7ad
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 17 12:45:15 2022 +0100
patch 8.2.4970: "eval 123" gives an error, "eval 'abc'" does not
Problem: "eval 123" gives an error, "eval 'abc'" does not.
Solution: Also give an error when evaluating only a string. (closes https://github.com/vim/vim/issues/10434)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 17 May 2022 14:00:05 +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>)