Files
neovim/runtime
Andrey Mishchenko 51f33ae5c0 fix: don't mutate opts parameter of vim.keymap.del
`vim.keymap.del` takes an `opts` parameter that lets caller refer to and
delete buffer-local mappings. For some reason the implementation of
`vim.keymap.del` mutates the table that is passed in, setting
`opts.buffer` to `nil`. I'm not sure why it does this since `opts` is
never again accessed/used by the implementation anyway.

This seems wrong and is also undocumented. This bit me because I was
setting and then later unsetting a collection of mappings for some
buffer, and I created a local `opts = {buffer=my_buffer_number}`, and
then I got "no such mapping" errors.
2022-04-22 17:30:51 -06:00
..
2022-04-19 15:14:17 +02:00
2021-05-01 14:22:52 -04:00
2022-04-19 15:14:17 +02:00
2021-09-13 16:33:41 +02:00
2021-05-01 22:29:03 -04:00
2021-11-17 10:02:59 +01:00
2014-12-19 15:28:49 -05:00
2021-03-09 19:21:26 +01:00
2022-04-19 15:14:17 +02:00
2021-11-27 19:39:42 +01:00
2019-07-29 20:50:07 +02:00
2021-04-27 09:21:32 -04:00
2019-07-29 20:50:07 +02:00
2022-04-15 13:38:44 +02:00
2021-05-01 22:29:03 -04:00
2021-05-01 22:29:02 -04:00