diff --git a/runtime/lua/vim/treesitter/_select.lua b/runtime/lua/vim/treesitter/_select.lua index 5ff8e2d3c7..ffca1a1ce5 100644 --- a/runtime/lua/vim/treesitter/_select.lua +++ b/runtime/lua/vim/treesitter/_select.lua @@ -36,7 +36,7 @@ local M = {} --- @param node vim.treesitter.select.node --- @return string local function node_id(node) - return ('%s:%s'):format(table.concat({ unpack(node.top.region) }, ':'), node.node:id()) + return table.concat({ unpack(node.top.region) }, ':') .. ':' .. node.node:id() end --- @param node vim.treesitter.select.node diff --git a/test/functional/treesitter/select_spec.lua b/test/functional/treesitter/select_spec.lua index 92d7d305bf..7f7df9a464 100644 --- a/test/functional/treesitter/select_spec.lua +++ b/test/functional/treesitter/select_spec.lua @@ -81,10 +81,6 @@ describe('treesitter incremental-selection', function() treeselect('select_next', 3) eq('4', get_selected()) - if t.skip(jit == nil, 'sometimes fails on PUC lua') then - return - end - treeselect('select_prev', 2) eq('2', get_selected())