From 4a526ce93c8df7c2a98a1b3024a02ecaf3903d66 Mon Sep 17 00:00:00 2001 From: xudyang1 <61672396+xudyang1@users.noreply.github.com> Date: Thu, 29 Aug 2024 22:58:50 -0400 Subject: [PATCH] fix: prevent cmd.exe taking over tab title --- lua/lint.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/lint.lua b/lua/lint.lua index 23a93f7e..ea76c06f 100644 --- a/lua/lint.lua +++ b/lua/lint.lua @@ -321,6 +321,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)