diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2026-03-11 14:25:12 +0100 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2026-03-12 11:12:56 +0100 |
| commit | 7ea148a1dc1518bc8a6835c0329894a590135937 (patch) | |
| tree | 6102472ab321182c98b05a919e5249616f6fb1bf /runtime/plugin/osc52.lua | |
| parent | bc67976c9521b4b9ec09cd95dc4d3e5a81236794 (diff) | |
docs: use "ev" convention in event-handlers
Problem:
In autocmd examples, using "args" as the event-object name is vague and
may be confused with a user-command.
Solution:
Use "ev" as the conventional event-object name.
Diffstat (limited to 'runtime/plugin/osc52.lua')
| -rw-r--r-- | runtime/plugin/osc52.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/plugin/osc52.lua b/runtime/plugin/osc52.lua index 370dafbb4e..a17ce14f5a 100644 --- a/runtime/plugin/osc52.lua +++ b/runtime/plugin/osc52.lua @@ -36,8 +36,8 @@ vim.api.nvim_create_autocmd('UIEnter', { vim.api.nvim_create_autocmd('TermResponse', { group = id, nested = true, - callback = function(args) - local resp = args.data.sequence ---@type string + callback = function(ev) + local resp = ev.data.sequence ---@type string local params = resp:match('^\027%[%?([%d;]+)c$') if params then -- Check termfeatures again, it may have changed between the query and response. |
