Skip to content

Commit

Permalink
fix!: backport ac9e755 from main
Browse files Browse the repository at this point in the history
Co-authored-by: Pham Huy Hoang <hoangtun0810@gmail.com>
Closes: neovim/neovim#25088
  • Loading branch information
2 people authored and clason committed Sep 11, 2023
1 parent 991ae3d commit 15d327f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/nvim-treesitter/indent.lua
Expand Up @@ -124,7 +124,7 @@ function M.get_indent(lnum)
-- some languages like Python will actually have worse results when re-parsing at opened new line
if not M.avoid_force_reparsing[root_lang] then
-- Reparse in case we got triggered by ":h indentkeys"
parser:parse()
parser:parse { vim.fn.line "w0" - 1, vim.fn.line "w$" - 1 }
end

-- Get language tree with smallest range around node that's not a comment parser
Expand Down

0 comments on commit 15d327f

Please sign in to comment.