summaryrefslogtreecommitdiff
path: root/ted.c
diff options
context:
space:
mode:
Diffstat (limited to 'ted.c')
-rw-r--r--ted.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ted.c b/ted.c
index ae1908b..e7f3098 100644
--- a/ted.c
+++ b/ted.c
@@ -637,11 +637,12 @@ void ted_go_to_lsp_document_position(Ted *ted, LSP *lsp, LSPDocumentPosition pos
ted_go_to_position(ted, path, line, character, true);
}
-void ted_cancel_lsp_request(Ted *ted, LSPID lsp, LSPRequestID request) {
+void ted_cancel_lsp_request(Ted *ted, LSPServerRequestID *request) {
if (!request) return;
- LSP *lsp_obj = ted_get_lsp_by_id(ted, lsp);
+ LSP *lsp_obj = ted_get_lsp_by_id(ted, request->lsp);
if (!lsp_obj) return;
- lsp_cancel_request(lsp_obj, request);
+ lsp_cancel_request(lsp_obj, request->id);
+ memset(request, 0, sizeof *request);
}