diff --git a/lua/nvim-surround/buffer.lua b/lua/nvim-surround/buffer.lua index d764560..d88f38d 100644 --- a/lua/nvim-surround/buffer.lua +++ b/lua/nvim-surround/buffer.lua @@ -115,7 +115,7 @@ M.set_operator_marks = function(motion) M.del_marks({ "[", "]" }) -- Set the [ and ] marks by calling an operatorfunc vim.go.operatorfunc = "v:lua.require'nvim-surround.utils'.NOOP" - vim.cmd.normal({ args = { "g@" .. motion }, bang = true }) + vim.cmd.normal({ args = { "g@" .. motion } }) -- Adjust the marks to not reside on whitespace M.adjust_mark("[") M.adjust_mark("]")