summaryrefslogtreecommitdiff
path: root/ide-hover.c
diff options
context:
space:
mode:
Diffstat (limited to 'ide-hover.c')
-rw-r--r--ide-hover.c1
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;