Skip to content

Commit 83a3d9a

Browse files
committed
fix scripts/update_builtin_commands.vim
1 parent 0d97f68 commit 83a3d9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/update_builtin_commands.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function! s:gen(ex_cmds_h) abort
8282

8383
let cumname = ''
8484
for [i, line] in map(copy(lines), {i, l -> [i, l]})
85-
if line =~# '^EX('
85+
if line =~# '^EXCMD('
8686
let name = matchstr(line, '"\zs.*\ze",')
8787
let flags = matchstr(lines[i+1], '\t\+\zs.*\ze,$')
8888

@@ -94,7 +94,7 @@ function! s:gen(ex_cmds_h) abort
9494
\ 'flags': flags,
9595
\ 'minlen': minlen,
9696
\ }
97-
let cmds = add(cmds, cmd)
97+
call add(cmds, cmd)
9898
endif
9999
endfor
100100
return cmds

0 commit comments

Comments
 (0)