aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/terminal/buffer_spec.lua2
-rw-r--r--test/functional/terminal/window_spec.lua20
2 files changed, 21 insertions, 1 deletions
diff --git a/test/functional/terminal/buffer_spec.lua b/test/functional/terminal/buffer_spec.lua
index 4ad0862986..365a4f8035 100644
--- a/test/functional/terminal/buffer_spec.lua
+++ b/test/functional/terminal/buffer_spec.lua
@@ -196,7 +196,7 @@ describe(':terminal buffer', function()
screen:expect([[
ab^c |
{4:~ }|
- {17:========== }|
+ {5:========== }|
rows: 2, cols: 50 |
{2: } |
{18:========== }|
diff --git a/test/functional/terminal/window_spec.lua b/test/functional/terminal/window_spec.lua
index f85e26a66d..118ca266dd 100644
--- a/test/functional/terminal/window_spec.lua
+++ b/test/functional/terminal/window_spec.lua
@@ -13,6 +13,26 @@ local skip = t.skip
local is_os = t.is_os
describe(':terminal window', function()
+ before_each(clear)
+
+ it('sets local values of window options #29325', function()
+ command('setglobal wrap list')
+ command('terminal')
+ eq({ 0, 0, 1 }, eval('[&l:wrap, &wrap, &g:wrap]'))
+ eq({ 0, 0, 1 }, eval('[&l:list, &list, &g:list]'))
+ command('enew')
+ eq({ 1, 1, 1 }, eval('[&l:wrap, &wrap, &g:wrap]'))
+ eq({ 1, 1, 1 }, eval('[&l:list, &list, &g:list]'))
+ command('buffer #')
+ eq({ 0, 0, 1 }, eval('[&l:wrap, &wrap, &g:wrap]'))
+ eq({ 0, 0, 1 }, eval('[&l:list, &list, &g:list]'))
+ command('new')
+ eq({ 1, 1, 1 }, eval('[&l:wrap, &wrap, &g:wrap]'))
+ eq({ 1, 1, 1 }, eval('[&l:list, &list, &g:list]'))
+ end)
+end)
+
+describe(':terminal window', function()
local screen
before_each(function()