commit 1355640d6a19fabc1e74d79b0bd49acf90253445
parent 28c294363f37d013af69e2779d734c132037f73f
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sun, 1 Feb 2026 16:16:09 +0800
test(tui_spec): fix overwriting environment on Windows (#37651)
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua
@@ -114,7 +114,7 @@ end)
describe('TUI :detach', function()
it('does not stop server', function()
- local job_opts = { env = env_notermguicolors }
+ local job_opts = { env = t.shallowcopy(env_notermguicolors) }
if is_os('win') then
-- TODO(justinmk): on Windows,
@@ -259,8 +259,7 @@ describe('TUI :restart', function()
nvim_set .. ' notermguicolors laststatus=2 background=dark',
'--cmd',
'echo getpid()',
- }) -- FIXME: why does using env_notermguicolors cause immediate exit on Windows?
- -- }, { env = env_notermguicolors })
+ }, { env = env_notermguicolors })
--- FIXME: On Windows spaces at the end of a screen line may have wrong attrs.
--- Remove this function when that's fixed.