Skip to content

Commit

Permalink
fix: prevent cmd.exe taking over tab title
Browse files Browse the repository at this point in the history
  • Loading branch information
xudyang1 committed Aug 30, 2024
1 parent efc6fc8 commit 4a526ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/lint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4a526ce

Please sign in to comment.