aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/diagnostic.lua
diff options
context:
space:
mode:
authorMax Coplan <mchcopl@gmail.com>2024-07-09 12:08:12 -0700
committerGitHub <noreply@github.com>2024-07-09 14:08:12 -0500
commitd918ebe3b8a5ee2a7ad735e2edd474cc1224ea28 (patch)
treeedd9258a7619c2529f82dff43bdf19922e327570 /runtime/lua/vim/diagnostic.lua
parent51d85f7ea58bd715cec1fdfa8d19826cafe7185d (diff)
downloadrneovim-d918ebe3b8a5ee2a7ad735e2edd474cc1224ea28.tar.gz
rneovim-d918ebe3b8a5ee2a7ad735e2edd474cc1224ea28.tar.bz2
rneovim-d918ebe3b8a5ee2a7ad735e2edd474cc1224ea28.zip
fix(diagnostic): fix backwards compatibility for goto_next and goto_prev (#29593)
Diffstat (limited to 'runtime/lua/vim/diagnostic.lua')
-rw-r--r--runtime/lua/vim/diagnostic.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/lua/vim/diagnostic.lua b/runtime/lua/vim/diagnostic.lua
index a4280506ab..db540c0dc1 100644
--- a/runtime/lua/vim/diagnostic.lua
+++ b/runtime/lua/vim/diagnostic.lua
@@ -1194,6 +1194,8 @@ end
---@deprecated
function M.goto_prev(opts)
vim.deprecate('vim.diagnostic.goto_prev()', 'vim.diagnostic.jump()', '0.13')
+ opts = opts or {}
+ opts.float = if_nil(opts.float, true)
goto_diagnostic(M.get_prev(opts), opts)
end
@@ -1339,6 +1341,8 @@ end
---@deprecated
function M.goto_next(opts)
vim.deprecate('vim.diagnostic.goto_next()', 'vim.diagnostic.jump()', '0.13')
+ opts = opts or {}
+ opts.float = if_nil(opts.float, true)
goto_diagnostic(M.get_next(opts), opts)
end