diff options
author | pommicket <pommicket@gmail.com> | 2022-12-30 12:42:32 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-30 12:42:32 -0500 |
commit | 66367583a3b57e37e9198838222f45d99e77d8ae (patch) | |
tree | 74764837b87f3d25e726265dbf3d6ae7cede3b7f /buffer.c | |
parent | 65cbe00bc124bdc1bd83bcd42ad5fbed521412b2 (diff) |
definitions menu, but it's acting weird
Diffstat (limited to 'buffer.c')
-rw-r--r-- | buffer.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -312,6 +312,8 @@ static void buffer_send_lsp_did_open(TextBuffer *buffer, LSP *lsp, char *buffer_ } LSP *buffer_lsp(TextBuffer *buffer) { + if (!buffer) + return NULL; if (!buffer_is_named_file(buffer)) return NULL; if (buffer->view_only) |