fix(lsp): catch another nil buffer state #40285

(cherry picked from commit 942778c758)
This commit is contained in:
Steve Huff
2026-06-16 16:20:17 -04:00
committed by github-actions[bot]
parent fec4045601
commit c81ab6027d

View File

@@ -349,6 +349,9 @@ local function send_changes_for_group(bufnr, firstline, lastline, new_lastline,
)
end
local buf_state = state.buffers[bufnr]
if not buf_state then
return
end
buf_state.needs_flush = true
reset_timer(buf_state)
local debounce = next_debounce(state.debounce, buf_state)