diff options
| author | bfredl <bjorn.linse@gmail.com> | 2024-03-08 09:15:21 +0100 |
|---|---|---|
| committer | bfredl <bjorn.linse@gmail.com> | 2024-03-08 09:23:28 +0100 |
| commit | e534ec47db4bf5e110c828ca3d875f5685dcfdde (patch) | |
| tree | 9ff3b9bc8e98e9ed356fdc08fa91ec2529328d8c /src/nvim/generators | |
| parent | 55c9e2c96e28059a5102e2551b16b4fa4592723b (diff) | |
| download | rneovim-e534ec47db4bf5e110c828ca3d875f5685dcfdde.tar.gz rneovim-e534ec47db4bf5e110c828ca3d875f5685dcfdde.tar.bz2 rneovim-e534ec47db4bf5e110c828ca3d875f5685dcfdde.zip | |
refactor(ui): remove outdated UI vs UIData distinction
Just some basic spring cleaning.
In the distant past, not all UI:s where remote UI:s. They still aren't,
but both of the "UI" and "UIData" structs are now only for remote UI:s.
Thus join them as "RemoteUI".
Diffstat (limited to 'src/nvim/generators')
| -rw-r--r-- | src/nvim/generators/gen_api_ui_events.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/generators/gen_api_ui_events.lua b/src/nvim/generators/gen_api_ui_events.lua index a4f59c7209..0808f71daa 100644 --- a/src/nvim/generators/gen_api_ui_events.lua +++ b/src/nvim/generators/gen_api_ui_events.lua @@ -110,10 +110,9 @@ for i = 1, #events do if not ev.remote_only then if not ev.remote_impl and not ev.noexport then remote_output:write('void remote_ui_' .. ev.name) - write_signature(remote_output, ev, 'UI *ui') + write_signature(remote_output, ev, 'RemoteUI *ui') remote_output:write('\n{\n') - remote_output:write(' UIData *data = ui->data;\n') - remote_output:write(' Array args = data->call_buf;\n') + remote_output:write(' Array args = ui->call_buf;\n') write_arglist(remote_output, ev) remote_output:write(' push_call(ui, "' .. ev.name .. '", args);\n') remote_output:write('}\n\n') |