Skip to content

Commit

Permalink
fix: keep autocmds on registering new one (#4846)
Browse files Browse the repository at this point in the history
  • Loading branch information
statiolake authored Dec 30, 2023
1 parent f82e420 commit 9831f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/autocmds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ export function createCommand(id: number, autocmd: Autocmd): string {
pattern = ''
}
let method = autocmd.request ? 'request' : 'notify'
return `autocmd! ${groupName} ${event} ${pattern} call coc#rpc#${method}('doAutocmd', [${id}${args}])`
return `autocmd ${groupName} ${event} ${pattern} call coc#rpc#${method}('doAutocmd', [${id}${args}])`
}

0 comments on commit 9831f9b

Please sign in to comment.