mirror of
https://github.com/neovim/neovim.git
synced 2026-03-31 04:42:03 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user