summaryrefslogtreecommitdiff
path: root/ide-usages.c
diff options
context:
space:
mode:
Diffstat (limited to 'ide-usages.c')
-rw-r--r--ide-usages.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ide-usages.c b/ide-usages.c
index 9b1b3fb..73fb725 100644
--- a/ide-usages.c
+++ b/ide-usages.c
@@ -1,8 +1,7 @@
void usages_cancel_lookup(Ted *ted) {
Usages *usages = &ted->usages;
if (usages->last_request_id) {
- LSP *lsp = ted_get_lsp_by_id(ted, usages->last_request_lsp);
- lsp_cancel_request(lsp, usages->last_request_id);
+ ted_cancel_lsp_request(ted, usages->last_request_lsp, usages->last_request_id);
usages->last_request_id = 0;
}
}