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
This commit is contained in:
Tomas Slusny
2025-10-14 02:04:48 +02:00
committed by GitHub
parent 0ed5e00077
commit d590644620

View File

@@ -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()