aboutsummaryrefslogtreecommitdiff
path: root/scripts/lintcommit.lua
diff options
context:
space:
mode:
authorSean Dewar <6256228+seandewar@users.noreply.github.com>2026-04-08 20:59:18 +0100
committerSean Dewar <6256228+seandewar@users.noreply.github.com>2026-04-08 21:48:38 +0100
commit1ff1973269594254900fbce40fd35c3024d9ed3d (patch)
treef25bab9e0e678f075958ef8d5ab62d9dfa023b1d /scripts/lintcommit.lua
parenteaea0c0f9da38613a6b8e7f13e0cf4263f7e22f3 (diff)
downloadrneovim-1ff1973269594254900fbce40fd35c3024d9ed3d.tar.gz
rneovim-1ff1973269594254900fbce40fd35c3024d9ed3d.tar.bz2
rneovim-1ff1973269594254900fbce40fd35c3024d9ed3d.zip
fix(api)!: nvim_clear_autocmds() "event" handling
Problem: nvim_clear_autocmds() does not type check "event" correctly, and also treats an empty array "event" like nil. Solution: fix type checking. Treat empty array "event" as a no-op, like nvim_exec_autocmds(). Add some extra tests. Likewise the nil handling change may be considered breaking if anyone (unintentionally) relied on that. It was also true that integer, function, etc. "event"s would also be treated like nil! Note that an empty string "event" is still an error, as that's must be an exact match on an event name.
Diffstat (limited to 'scripts/lintcommit.lua')
0 files changed, 0 insertions, 0 deletions