diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2025-02-01 23:43:31 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-01 23:43:31 -0800 |
commit | 0ce0e93bd93d1a203cbb58ab5a029a4260d66798 (patch) | |
tree | 25b4d9c602a85a323a7b42d3f7bb5497bbdf08af /runtime/lua/vim/_editor.lua | |
parent | a857b251d123112eda78945e163fe7fd0438ff59 (diff) | |
download | rneovim-0ce0e93bd93d1a203cbb58ab5a029a4260d66798.tar.gz rneovim-0ce0e93bd93d1a203cbb58ab5a029a4260d66798.tar.bz2 rneovim-0ce0e93bd93d1a203cbb58ab5a029a4260d66798.zip |
refactor(autocmds): remove indirection #32291
Problem:
`AucmdExecutable` adds 2 layers of indirection. Although formalizing
a `union` is good practice for shared interfaces, this struct is mainly
for `autocmd_register` which is internal to this module.
Solution:
- Store the cmd/fn fields directly on the `AutoCmd` struct.
- Drop `AucmdExecutable` and related structures.
Diffstat (limited to 'runtime/lua/vim/_editor.lua')
0 files changed, 0 insertions, 0 deletions