mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
refactor(options): convert opt_idx
variables to OptIndex
This commit is contained in:
@@ -241,6 +241,7 @@ end
|
||||
opt_fd = assert(io.open(options_enum_file, 'w'))
|
||||
|
||||
w('typedef enum {')
|
||||
w(' kOptInvalid = -1,')
|
||||
for i, o in ipairs(options.options) do
|
||||
w((' kOpt%s = %u,'):format(title_case(o.full_name), i - 1))
|
||||
end
|
||||
|
Reference in New Issue
Block a user