neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit d59064462096f6f3637d1b97d9190694f543785b
parent 0ed5e00077dcc8ab1a99dd76a85628b11504ffa4
Author: Tomas Slusny <slusnucky@gmail.com>
Date:   Tue, 14 Oct 2025 02:04:48 +0200

fix(difftool): silence :only command in setup_layout #36168

Suppresses output from the :only command by passing the { silent = true }
modifier to vim.cmd.only(). This prevents unnecessary messages when
setting up the diff layout.

Closes #36167
Diffstat:
Mruntime/pack/dist/opt/nvim.difftool/lua/difftool.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runtime/pack/dist/opt/nvim.difftool/lua/difftool.lua b/runtime/pack/dist/opt/nvim.difftool/lua/difftool.lua @@ -61,7 +61,7 @@ local function setup_layout(with_qf) return false end - vim.cmd.only() + vim.cmd.only({ mods = { silent = true } }) layout.left_win = vim.api.nvim_get_current_win() vim.cmd('rightbelow vsplit') layout.right_win = vim.api.nvim_get_current_win()