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 authored and GitHub committed 2025-10-13 17:04:48 -07:00
1 parent 0ed5e00077
commit d590644620
1 file changed
+1 -1
+1 -1
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()