aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/secure.lua
diff options
context:
space:
mode:
authortstsrt <41282711+tstsrt@users.noreply.github.com>2025-04-01 12:30:00 +0000
committerGitHub <noreply@github.com>2025-04-01 05:30:00 -0700
commitec18ebcb417bb9f2afc81d247db6993eaa48701f (patch)
treee48e5bedb7971c97589741705db18873b4fed2bd /runtime/lua/vim/secure.lua
parent0e7479bb7637a21121b990cc960262a0d60196da (diff)
downloadrneovim-ec18ebcb417bb9f2afc81d247db6993eaa48701f.tar.gz
rneovim-ec18ebcb417bb9f2afc81d247db6993eaa48701f.tar.bz2
rneovim-ec18ebcb417bb9f2afc81d247db6993eaa48701f.zip
fix(api): nvim_set_keymap() throws error even in pcall() #33228
Problem: When `nvim_set_keymap` tries to overwrite a `<unique>` mapping, it throws an error even when called in `pcall`. Solution: src/nvim/mapping.c:buf_do_map no longer calls `semsg`. Its callers now decide whether to ignore the error, or use `semsg` (not caught)/`api_set_error` (caught by `pcall`).
Diffstat (limited to 'runtime/lua/vim/secure.lua')
0 files changed, 0 insertions, 0 deletions