Skip to content

Commit 2cd3ae6

Browse files
Update deprecated usage of ts-utils
1 parent 600c45c commit 2cd3ae6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/orgmode/org/mappings.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ function OrgMappings:handle_return(suffix)
541541
local counter = 1
542542
while next_sibling do
543543
local bullet = next_sibling:child(0)
544-
local text = table.concat(ts_utils.get_node_text(bullet))
544+
local text = vim.treesitter.query.get_node_text(bullet, 0)
545545
local new_text = tostring(tonumber(text:match('%d+')) + 1) .. closer
546546

547547
if counter == 1 then

0 commit comments

Comments
 (0)