diff options
| author | Albert Cervin <albert@acervin.com> | 2025-11-21 23:19:59 +0100 |
|---|---|---|
| committer | Albert Cervin <albert@acervin.com> | 2025-11-21 23:19:59 +0100 |
| commit | 715165b53f055b785e005984038bcae8d88142db (patch) | |
| tree | de98a91d22fa0303cdfd552ecb8fd3ed8e3bb8a9 /src/main/lsp/actions.c | |
| parent | e04a05de866f9b903bd426bfc6a4bada9b70c89a (diff) | |
| download | dged-715165b53f055b785e005984038bcae8d88142db.tar.gz dged-715165b53f055b785e005984038bcae8d88142db.tar.xz dged-715165b53f055b785e005984038bcae8d88142db.zip | |
Fix so more than one file gets error highlights
The previous fix for that did not take multiple files into account.
Diffstat (limited to 'src/main/lsp/actions.c')
| -rw-r--r-- | src/main/lsp/actions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/lsp/actions.c b/src/main/lsp/actions.c index ea792a1..884cef7 100644 --- a/src/main/lsp/actions.c +++ b/src/main/lsp/actions.c @@ -108,10 +108,10 @@ int32_t code_actions_cmd(struct command_ctx ctx, int argc, const char **argv) { VEC_INIT(¶ms.context.diagnostics, 8); - diagnostic_vec *d = + struct lsp_buffer_diagnostics *d = diagnostics_for_buffer(lsp_server_diagnostics(server), bv->buffer); if (d != NULL) { - VEC_FOR_EACH(d, struct diagnostic * diag) { + VEC_FOR_EACH(&d->diagnostics, struct diagnostic * diag) { if (location_is_between(bv->dot, diag->region.begin, diag->region.end)) { VEC_PUSH(¶ms.context.diagnostics, *diag); } |
