mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30:02 -04:00
fix: prev_node nil check
This commit is contained in:
parent
052590ae55
commit
7deedc4939
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ function M.get_indent(lnum)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- nodes can be marked @return to prevent using them
|
-- nodes can be marked @return to prevent using them
|
||||||
if not q.returns[node_fmt(prev_node)] then
|
if prev_node and not q.returns[node_fmt(prev_node)] then
|
||||||
local row = prev_node:start()
|
local row = prev_node:start()
|
||||||
local end_row = prev_node:end_()
|
local end_row = prev_node:end_()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue