We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcfa7e0 commit a0f5ab4Copy full SHA for a0f5ab4
lua/nvim-surround/treesitter.lua
@@ -95,7 +95,10 @@ M.get_selection = function(node_types)
95
nodes[#nodes + 1] = cur
96
-- Compute the node's selection and add it to the list
97
local selection = M.get_node_selection(cur)
98
- selections_list[#selections_list + 1] = selection
+ selections_list[#selections_list + 1] = {
99
+ left = { first_pos = selection.first_pos },
100
+ right = { last_pos = selection.last_pos },
101
+ }
102
end
103
-- Pop off of the stack
104
stack[#stack] = nil
0 commit comments