diff options
| author | Sergei Slipchenko <faergeek@gmail.com> | 2025-07-25 18:56:50 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-25 07:56:50 -0700 |
| commit | 0a113013fb85866890600570aabc58089dc02daf (patch) | |
| tree | 3278d4cab36cc5197f53b053b2bbf5715dceac99 /runtime/lua/vim/provider/python.lua | |
| parent | e4a100a1e1c0fd7dfe4162b5b1c1e228ec9729e7 (diff) | |
| download | rneovim-0a113013fb85866890600570aabc58089dc02daf.tar.gz rneovim-0a113013fb85866890600570aabc58089dc02daf.tar.bz2 rneovim-0a113013fb85866890600570aabc58089dc02daf.zip | |
fix(diagnostics): position diagnostics using extmarks #34014
Problem:
Diagnostic positions are not being updated after text changes, which
means `vim.diagnostic.open_float` and `vim.diagnostic.jump` will work
with outdated positions when text is changed until diagnostics are
updated again (if ever).
Solution:
Create extmarks in `vim.diagnostic.set` and use their positions for
`vim.diagnostic.open_float` and `next_diagnostic` (used by
`vim.diagnostic.jump`, `vim.diagnostic.get_next` and
`vim.diagnostic.get_prev`).
Diffstat (limited to 'runtime/lua/vim/provider/python.lua')
0 files changed, 0 insertions, 0 deletions