nvimdev / lspsaga.nvim

improve neovim lsp experience
MIT License
3.41k stars 287 forks source link

Fix: stop showing get_diagnostic when cursor exceed position #1387

Open quasi-mod opened 7 months ago

quasi-mod commented 7 months ago

This patch fixes the problem which diagnostics keeps on showing even when cursor position exceeds diagnosed area in get_diagnostic. It fixes the condition clause in get_diagnostic to correctly determine the cursor position to show. This is a followup fix from Issue #1270.