From 4881456e83fb49994677fe06aef3b0c597ba4517 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Fri, 17 Sep 2021 09:21:17 +0200 Subject: [PATCH] fix(diagnostic): nvim_echo takes three args (#15687) Fixup for https://github.com/neovim/neovim/pull/15585 Closes https://github.com/neovim/neovim/issues/15686 --- runtime/lua/vim/diagnostic.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/lua/vim/diagnostic.lua b/runtime/lua/vim/diagnostic.lua index 33fa07ef4c..893d0d5cb7 100644 --- a/runtime/lua/vim/diagnostic.lua +++ b/runtime/lua/vim/diagnostic.lua @@ -631,7 +631,7 @@ local function diagnostic_move_pos(opts, pos) local win_id = opts.win_id or vim.api.nvim_get_current_win() if not pos then - vim.api.nvim_echo({"No more valid diagnostics to move to", "WarningMsg"}) + vim.api.nvim_echo({{"No more valid diagnostics to move to", "WarningMsg"}}, true, {}) return end