Skip to content

Commit

Permalink
Prevent cmd.exe taking over tab title (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
xudyang1 authored Sep 3, 2024
1 parent debabca commit fe05161
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 @@ -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)
Expand Down

0 comments on commit fe05161

Please sign in to comment.