Skip to content

Commit 01ebc76

Browse files
authored
fix(relatedDiagnostics): compatibility with Nvim 0.10.2 (#605)
1 parent d0b2369 commit 01ebc76

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lua/rustaceanvim/commands/diagnostic.lua

+5-1
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,11 @@ function M.related_diagnostics()
459459
end)
460460
else
461461
vim.fn.setqflist({}, ' ', { title = 'related diagnostics', items = quickfix_entries })
462-
vim.cmd.botright('copen')
462+
if vim.cmd.botright then
463+
vim.cmd.botright('copen')
464+
else
465+
vim.cmd.copen()
466+
end
463467
end
464468
end
465469

0 commit comments

Comments
 (0)