mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 20:10:10 -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
|
||||
|
||||
-- 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 end_row = prev_node:end_()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue