mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
tui_spec: Convert nil to "" before formatting it
This fixes an apparent difference in behavior between Lua and LuaJIT. Lua fails to format nil: test/functional/terminal/tui_spec.lua:381: bad argument #2 to 'format' (string expected, got nil)
This commit is contained in:
parent
69e3308771
commit
cf75de710c
@ -380,7 +380,7 @@ describe("tui 't_Co' (terminal colors)", function()
|
||||
-- TODO: Revisit this after jobstart/termopen accept `env` dict.
|
||||
screen = thelpers.screen_setup(0, string.format(
|
||||
[=[['sh', '-c', 'LANG=C TERM=%s %s %s -u NONE -i NONE --cmd "silent set noswapfile noshowcmd noruler"']]=],
|
||||
term,
|
||||
term or "",
|
||||
(colorterm ~= nil and "COLORTERM="..colorterm or ""),
|
||||
helpers.nvim_prog))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user