aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorRaphael <glephunter@gmail.com>2024-04-23 19:13:58 +0800
committerGitHub <noreply@github.com>2024-04-23 04:13:58 -0700
commita4fc3bb0e68c8b078377fd9826e4cca3b4b3fdbf (patch)
tree41e1738c5cc0293acad307b3c2f55467cc523777 /runtime/doc
parentad76b050eb2cd03174c108b5ae6759b3c1ea8941 (diff)
downloadrneovim-a4fc3bb0e68c8b078377fd9826e4cca3b4b3fdbf.tar.gz
rneovim-a4fc3bb0e68c8b078377fd9826e4cca3b4b3fdbf.tar.bz2
rneovim-a4fc3bb0e68c8b078377fd9826e4cca3b4b3fdbf.zip
fix(diagnostic): vim.diagnostic.get(…,{lnum=…}) on multi-line diagnostic #28273
Problem: vim.diagnostic.get(…,{lnum=…}) does not match multi-line diagnostics. Solution: add end_lnum support.
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/diagnostic.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/doc/diagnostic.txt b/runtime/doc/diagnostic.txt
index 437778574d..b7d5cb0b2c 100644
--- a/runtime/doc/diagnostic.txt
+++ b/runtime/doc/diagnostic.txt
@@ -373,7 +373,8 @@ Lua module: vim.diagnostic *diagnostic-api*
Fields: ~
• {namespace}? (`integer[]|integer`) Limit diagnostics to one or more
namespaces.
- • {lnum}? (`integer`) Limit diagnostics to the given line number.
+ • {lnum}? (`integer`) Limit diagnostics to those spanning the
+ specified line number.
• {severity}? (`vim.diagnostic.SeverityFilter`) See
|diagnostic-severity|.