From b851aa517f02c15dc34788e29e2d4b329d98cf2e Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 29 Sep 2026 08:48:53 +0800 Subject: vim-patch:d1fa936: runtime(javascript): missing :endif in javascriptcomplete#CompleteJS() Problem: The "if a:findstart" block in javascriptcomplete#CompleteJS() has no matching :endif. Solution: Add the missing :endif before :endfunction. This has no user-visible effect. Both branches of the block return before reaching :endfunction, so calling the function never gives E171 and completion works as before. closes: vim/vim#21388 https://github.com/vim/vim/commit/d1fa9362243c74a8c41a5a743836619e6157881a Co-authored-by: Hirohito Higashi --- runtime/autoload/javascriptcomplete.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'runtime/autoload/javascriptcomplete.vim') diff --git a/runtime/autoload/javascriptcomplete.vim b/runtime/autoload/javascriptcomplete.vim index 3ec3b50490..8833ca666c 100644 --- a/runtime/autoload/javascriptcomplete.vim +++ b/runtime/autoload/javascriptcomplete.vim @@ -1,9 +1,10 @@ " Vim completion script " Language: Java Script " Maintainer: Jay Sitter (jay@jaysitter.com) -" URL: https://github.com/jsit/javascriptcomplete.vim/ +" URL: https://github.com/vim-language-dept/javascript-complete.vim/ " Previous Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl ) " Last Change: 2020 Jul 30 +" 2026 Sep 28 by Vim project: fix syntax error #21388 function! javascriptcomplete#CompleteJS(findstart, base) if a:findstart @@ -641,6 +642,7 @@ function! javascriptcomplete#CompleteJS(findstart, base) endfor let g:fm = final_menu return final_menu + endif endfunction -- cgit