From aff6748b6013b003cb4c4ecde988ea9e3a84554b Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Tue, 17 Dec 2024 22:26:31 +0100 Subject: [PATCH] fix(commands/relatedDiagnostics): error opening quickfix list in nightly --- lua/rustaceanvim/commands/diagnostic.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lua/rustaceanvim/commands/diagnostic.lua b/lua/rustaceanvim/commands/diagnostic.lua index dd9ceb48..dbf68440 100644 --- a/lua/rustaceanvim/commands/diagnostic.lua +++ b/lua/rustaceanvim/commands/diagnostic.lua @@ -449,11 +449,7 @@ function M.related_diagnostics() end) else vim.fn.setqflist({}, ' ', { title = 'related diagnostics', items = quickfix_entries }) - if vim.cmd.botright then - vim.cmd.botright('copen') - else - vim.cmd.copen() - end + vim.cmd([[ botright copen ]]) end end