Mercurial > vim
view ci/if_ver-cmd.vim @ 29968:b01273bbc75e v9.0.0322
patch 9.0.0322: crash when no errors and 'quickfixtextfunc' is set
Commit: https://github.com/vim/vim/commit/4f1b083be43f351bc107541e7b0c9655a5d2c0bb
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Aug 29 20:45:16 2022 +0100
patch 9.0.0322: crash when no errors and 'quickfixtextfunc' is set
Problem: Crash when no errors and 'quickfixtextfunc' is set.
Solution: Do not handle errors if there aren't any.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 29 Aug 2022 22: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>)