Skip to content

Commit f3bc644

Browse files
arindasMunifTanjim
authored andcommitted
fix(inlay_hints): disable strict_indexing for nvim_buf_get_lines
PR: simrat39#353
1 parent 2ba50c9 commit f3bc644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/rust-tools/inlay_hints.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ local function parse_hints(result, bufnr)
148148
end
149149

150150
local line_len =
151-
string.len(vim.api.nvim_buf_get_lines(bufnr, line, line + 1, true)[1])
151+
string.len(vim.api.nvim_buf_get_lines(bufnr, line, line + 1, false)[1] or "")
152152
max_line_len = math.max(max_line_len, line_len)
153153

154154
add_line()

0 commit comments

Comments
 (0)