aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter/playground.lua
diff options
context:
space:
mode:
authorWilliam <50717946+BIKA-C@users.noreply.github.com>2023-04-20 06:42:49 -0700
committerGitHub <noreply@github.com>2023-04-20 07:42:49 -0600
commitab2811746eb72e06309a9877dbe6cb70d9cd3b12 (patch)
treee2267d321dc8f95481335d8a88880958a27d6ccb /runtime/lua/vim/treesitter/playground.lua
parentdbcd1985d13b02ab7a547d0b97d4ede28fa49b96 (diff)
downloadrneovim-ab2811746eb72e06309a9877dbe6cb70d9cd3b12.tar.gz
rneovim-ab2811746eb72e06309a9877dbe6cb70d9cd3b12.tar.bz2
rneovim-ab2811746eb72e06309a9877dbe6cb70d9cd3b12.zip
fix(treesitter playground): fix the wrong range of a node displayed i… (#23209)
fix(treesitter playground): wrong range of a node displayed in playground The call parameters order of the function `get_range_str` is flipped for the last two arguments compared to the declaration.
Diffstat (limited to 'runtime/lua/vim/treesitter/playground.lua')
-rw-r--r--runtime/lua/vim/treesitter/playground.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/treesitter/playground.lua b/runtime/lua/vim/treesitter/playground.lua
index 2c0a0d1aa6..c512710810 100644
--- a/runtime/lua/vim/treesitter/playground.lua
+++ b/runtime/lua/vim/treesitter/playground.lua
@@ -147,7 +147,7 @@ local decor_ns = api.nvim_create_namespace('ts.playground')
---@param end_lnum integer
---@param end_col integer
---@return string
-local function get_range_str(lnum, col, end_col, end_lnum)
+local function get_range_str(lnum, col, end_lnum, end_col)
if lnum == end_lnum then
return string.format('[%d:%d - %d]', lnum + 1, col + 1, end_col)
end