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

This commit is contained in:
Steve Huff
2026-06-16 16:20:17 -04:00
committed by GitHub
parent 0a5f40c207
commit 942778c758

View File

@@ -351,6 +351,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)