diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-06-14 06:20:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-14 06:20:42 +0800 |
commit | 5def8714ad70e71e07773960269fff5c0c95e7ab (patch) | |
tree | ff97b539acbaccd538c0269b46e322e7d55632dc /test/functional/terminal/window_spec.lua | |
parent | 4a2494098025c9e9b3aa205bdc2d357315831dc3 (diff) | |
download | rneovim-5def8714ad70e71e07773960269fff5c0c95e7ab.tar.gz rneovim-5def8714ad70e71e07773960269fff5c0c95e7ab.tar.bz2 rneovim-5def8714ad70e71e07773960269fff5c0c95e7ab.zip |
fix(terminal): set local values of window options (#29326)
Diffstat (limited to 'test/functional/terminal/window_spec.lua')
-rw-r--r-- | test/functional/terminal/window_spec.lua | 20 |
1 files changed, 20 insertions, 0 deletions
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() |