summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/termcap.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/lua/vim/termcap.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/lua/vim/termcap.lua')
-rw-r--r--runtime/lua/vim/termcap.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/termcap.lua b/runtime/lua/vim/termcap.lua
index 887fd5b58f..937fee1024 100644
--- a/runtime/lua/vim/termcap.lua
+++ b/runtime/lua/vim/termcap.lua
@@ -33,8 +33,8 @@ function M.query(caps, cb)
local id = vim.api.nvim_create_autocmd('TermResponse', {
nested = true,
- callback = function(args)
- local resp = args.data.sequence ---@type string
+ callback = function(ev)
+ local resp = ev.data.sequence ---@type string
local k, rest = resp:match('^\027P1%+r(%x+)(.*)$')
if k and rest then
local cap = vim.text.hexdecode(k)