This repository has been archived by the owner on Aug 3, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update :Validate command definition to prevent error
This change updates the :Validate command definition to drop the -complete=file option, and updates the docs to indicate the :Validate command does not take a file argument. Otherwise, without this change, loading of eclim/ftplugin/xml.vim in versions of vim later than 8.2.3140 will fail with the error message “E1208: -complete used without -nargs” — due to this vim change: vim/vim@de69a73 That change causes vim to explicitly check for the case where -nargs=0 is used with -complete — because it doesn’t seem to make sense to use -complete without also actually permitting arguments for completion. And in org.eclim.core/vim/eclim/autoload/eclim/xml/validate.vim, there doesn’t actually seem to be any support for handling any file argument passed to the :Validate command. So that’s why this patch drops the -complete=file option — rather than setting -nargs=1 — and that’s why the patch also updates the docs to indicate :Validate takes no argument. Fixes #615 Related: vim/vim#8544
- Loading branch information