fix: send the latest file content each time (#1879)
This commit is contained in:
@@ -84,6 +84,8 @@ function M.func(opts, on_log, on_complete, session_ctx)
|
||||
return
|
||||
end
|
||||
vim.api.nvim_buf_set_lines(bufnr, opts.insert_line, opts.insert_line, false, new_lines)
|
||||
vim.api.nvim_buf_call(bufnr, function() vim.cmd("noautocmd write") end)
|
||||
if session_ctx then Helpers.mark_as_not_viewed(opts.path, session_ctx) end
|
||||
on_complete(true, nil)
|
||||
end, { focus = true }, session_ctx)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user