mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
[Backport release-0.9] fix(treesitter playground): fix the wrong range of a node displayed i… (#23220)
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.
(cherry picked from commit 8613ba118c
)
Co-authored-by: William <50717946+BIKA-C@users.noreply.github.com>
This commit is contained in:
![41898282+github-actions[bot]@users.noreply.github.com](/assets/img/avatar_default.png)
committed by
GitHub

parent
9cb2f2fc31
commit
ef7513c87f
@@ -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
|
||||
|
Reference in New Issue
Block a user