mirror of
https://github.com/neovim/neovim.git
synced 2025-12-10 16:42:42 +00:00
test/wildmode_spec: override $PS1
User config may set $PS1 for a colored prompt. It breaks the screen tests.
This commit is contained in:
@@ -410,6 +410,7 @@ describe("'scrollback' option", function()
|
|||||||
command([[let $PROMPT='$$']])
|
command([[let $PROMPT='$$']])
|
||||||
screen = thelpers.screen_setup(nil, "['cmd.exe']", 30)
|
screen = thelpers.screen_setup(nil, "['cmd.exe']", 30)
|
||||||
else
|
else
|
||||||
|
command('let $PS1 = "$"')
|
||||||
screen = thelpers.screen_setup(nil, "['sh']", 30)
|
screen = thelpers.screen_setup(nil, "['sh']", 30)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -160,6 +160,7 @@ describe("'wildmenu'", function()
|
|||||||
|
|
||||||
if not iswin() then
|
if not iswin() then
|
||||||
command('set shell=sh') -- Need a predictable "$" prompt.
|
command('set shell=sh') -- Need a predictable "$" prompt.
|
||||||
|
command('let $PS1 = "$"')
|
||||||
end
|
end
|
||||||
command('set laststatus=0')
|
command('set laststatus=0')
|
||||||
command('vsplit')
|
command('vsplit')
|
||||||
|
|||||||
Reference in New Issue
Block a user