From fe051618be920ba857699890f6abd8f2ca264232 Mon Sep 17 00:00:00 2001 From: xudyang1 <61672396+xudyang1@users.noreply.github.com> Date: Tue, 3 Sep 2024 16:14:31 -0400 Subject: [PATCH] Prevent cmd.exe taking over tab title (#649) --- lua/lint.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/lint.lua b/lua/lint.lua index a74fb8f2..e7db985a 100644 --- a/lua/lint.lua +++ b/lua/lint.lua @@ -323,6 +323,10 @@ function M.lint(linter, opts) -- pop up shortly. detached = not iswin } + -- prevents cmd.exe taking over the tab title + if iswin then + linter_opts.hide = true + end local cmd = eval_fn_or_id(linter.cmd) assert(cmd, 'Linter definition must have a `cmd` set: ' .. vim.inspect(linter)) handle, pid_or_err = uv.spawn(cmd, linter_opts, function(code)