diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2021-07-09 17:45:32 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2021-07-09 17:45:32 +0200 |
| commit | b646a9f8d67275af0baeac1f339a168345c3d1f7 (patch) | |
| tree | fd578faf7f9e096afb8cc8b824f95093a1e0ab75 | |
| parent | 40ba58172eb303cd71ea2e03d39483a4dab74817 (diff) | |
| download | vis-lspc-b646a9f8d67275af0baeac1f339a168345c3d1f7.tar.gz vis-lspc-b646a9f8d67275af0baeac1f339a168345c3d1f7.zip | |
fix LSP message parsing
Don't always reset the state even if we updated it explicitly with
the leftover from a complete message.
| -rw-r--r-- | init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -737,10 +737,10 @@ local function ls_recv_data(ls, data) ls.partial_response.exp_len = 0 ls.partial_response.len = 0 ls_recv_data(ls, leftover_data) + else + ls.partial_response.exp_len = 0 + ls.partial_response.len = 0 end - - ls.partial_response.exp_len = 0 - ls.partial_response.len = 0 end -- check if a language server is running and initialized |
