Mercurial > vim
view ci/if_ver-cmd.vim @ 27154:6d7fe3af5aa2 v8.2.4106
patch 8.2.4106: going over the end of the w_lines array
Commit: https://github.com/vim/vim/commit/fa1a45705995f16ee7e69434c772107a3ddeeebd
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 16 11:42:20 2022 +0000
patch 8.2.4106: going over the end of the w_lines array
Problem: Going over the end of the w_lines array.
Solution: Break out of the loop when "idx" is too big. (issue https://github.com/vim/vim/issues/9540)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 16 Jan 2022 12: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>)