We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 761bd07 commit 4b1ae8aCopy full SHA for 4b1ae8a
lua/rest-nvim/utils/init.lua
@@ -92,7 +92,7 @@ end
92
93
M.get_node_value = function(node, bufnr)
94
local start_row, start_col, _, end_col = node:range()
95
- local line = api.nvim_buf_get_lines(bufnr, start_row, start_row + 1, false)[1]
+ local line = vim.api.nvim_buf_get_lines(bufnr, start_row, start_row + 1, false)[1]
96
return line and string.sub(line, start_col + 1, end_col):gsub('^["\'](.*)["\']$', '%1') or nil
97
end
98
0 commit comments