summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/plugin/osc52.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2026-03-11 14:25:12 +0100
committerJustin M. Keyes <justinkz@gmail.com>2026-03-12 11:12:56 +0100
commit7ea148a1dc1518bc8a6835c0329894a590135937 (patch)
tree6102472ab321182c98b05a919e5249616f6fb1bf /runtime/plugin/osc52.lua
parentbc67976c9521b4b9ec09cd95dc4d3e5a81236794 (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.lua4
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.