diff options
author | pommicket <pommicket@gmail.com> | 2022-12-30 22:31:37 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-30 22:31:37 -0500 |
commit | 37275ad25635624161c3b51bc81cbd431a200e0c (patch) | |
tree | 14177e8326c4b384ddfc3a60f72e07f0becfe378 /ide-hover.c | |
parent | 94ce74b998ad019e2307e4b69f006127dba775e2 (diff) |
textDocument/references request
Diffstat (limited to 'ide-hover.c')
-rw-r--r-- | ide-hover.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ide-hover.c b/ide-hover.c index 80f2a09..77aec96 100644 --- a/ide-hover.c +++ b/ide-hover.c @@ -12,6 +12,7 @@ static bool get_hover_position(Ted *ted, LSPDocumentPosition *pos, TextBuffer ** TextBuffer *buffer = NULL; if (ted_get_mouse_buffer_pos(ted, &buffer, &mouse_pos)) { LSP *l = buffer_lsp(buffer); + if (!l) return false; if (pos) *pos = buffer_pos_to_lsp_document_position(buffer, mouse_pos); if (pbuffer) *pbuffer = buffer; if (lsp) *lsp = l; |