mirror of
https://github.com/neovim/neovim.git
synced 2026-04-21 23:05:41 +00:00
fix(diagnostic): display 1-based related information line/col numbers (#37093)
Problem LSP Related Information line and column numbers are 0-based. Displaying them this way can confuse the user, since vim line/col numbers are typically displayed 1-based. Solution Display the line and column numbers as 1-based.
This commit is contained in:
@@ -2571,8 +2571,8 @@ function M.open_float(opts, ...)
|
||||
'%s%s:%s:%s%s',
|
||||
default_pre,
|
||||
file_name,
|
||||
location.range.start.line,
|
||||
location.range.start.character,
|
||||
location.range.start.line + 1,
|
||||
location.range.start.character + 1,
|
||||
info_suffix
|
||||
)
|
||||
highlights[#highlights + 1] = {
|
||||
|
||||
Reference in New Issue
Block a user