E5108: Error executing lua ...are/nvim/lazy/nvim-surround/lua/nvim-surround/buffer.lua
:58: Line value outside range
stack traceback:
[C]: in function 'nvim_buf_set_mark'
...are/nvim/lazy/nvim-surround/lua/nvim-surround/buffer.lua:58: in function 's
et_mark'
...are/nvim/lazy/nvim-surround/lua/nvim-surround/buffer.lua:116: in function '
set_operator_marks'
...re/nvim/lazy/nvim-surround/lua/nvim-surround/motions.lua:22: in function 'g
et_selection'
...are/nvim/lazy/nvim-surround/lua/nvim-surround/config.lua:290: in function <
...are/nvim/lazy/nvim-surround/lua/nvim-surround/config.lua:289>
...hare/nvim/lazy/nvim-surround/lua/nvim-surround/utils.lua:33: in function 'g
et_nearest_selections'
...share/nvim/lazy/nvim-surround/lua/nvim-surround/init.lua:159: in function '
delete_surround'
...share/nvim/lazy/nvim-surround/lua/nvim-surround/init.lua:298: in function <
...share/nvim/lazy/nvim-surround/lua/nvim-surround/init.lua:289>
Thanks for the detailed reproduction steps and information! It really helped me diagnose this quickly. Please try the latest commit on main and see if that fixes the issue.
Checklist
:h nvim-surround
to see if there might be any relevant information there?Neovim Version
NVIM v0.9.0
Plugin Version
Tagged (Stable)
Minimal Configuration
Sample Buffer
Keystroke Sequence
(test)
:ds)
orcs)}
.https://github.com/kylechui/nvim-surround/assets/53635735/0bc78098-4382-4d6b-aac3-de03eb3425f9
Expected behavior
Parens deleted or changed.
Actual behavior
Additional context
This happens when mark
<
or>
is invalid.