Skip to content

Commit 0cadeb0

Browse files
authored
fix: Allow custom textobject in motion of selection (#412)
1 parent 75de178 commit 0cadeb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-surround/buffer.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ M.set_operator_marks = function(motion)
115115
M.del_marks({ "[", "]" })
116116
-- Set the [ and ] marks by calling an operatorfunc
117117
vim.go.operatorfunc = "v:lua.require'nvim-surround.utils'.NOOP"
118-
vim.cmd.normal({ args = { "g@" .. motion }, bang = true })
118+
vim.cmd.normal({ args = { "g@" .. motion } })
119119
-- Adjust the marks to not reside on whitespace
120120
M.adjust_mark("[")
121121
M.adjust_mark("]")

0 commit comments

Comments
 (0)