aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/window_spec.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-11-14 13:10:32 +0100
committerGitHub <noreply@github.com>2024-11-14 13:10:32 +0100
commit7d771c3eeef5b4dca9ebc5ed6f7ca03f2b26b6bc (patch)
treefc5908c85c0cc6affc3bc325cd75f6efaeea95d8 /test/functional/api/window_spec.lua
parent40dee8a2dcba996badaa6182eb34fde1694f92a3 (diff)
parente61228a214ebda9845db9462dad0a8c362d3963f (diff)
downloadrneovim-7d771c3eeef5b4dca9ebc5ed6f7ca03f2b26b6bc.tar.gz
rneovim-7d771c3eeef5b4dca9ebc5ed6f7ca03f2b26b6bc.tar.bz2
rneovim-7d771c3eeef5b4dca9ebc5ed6f7ca03f2b26b6bc.zip
Merge pull request #31168 from bfredl/noattach
fix(tests): needing two calls to setup a screen is cringe
Diffstat (limited to 'test/functional/api/window_spec.lua')
-rw-r--r--test/functional/api/window_spec.lua6
1 files changed, 0 insertions, 6 deletions
diff --git a/test/functional/api/window_spec.lua b/test/functional/api/window_spec.lua
index 5ce93f9e04..92999f383a 100644
--- a/test/functional/api/window_spec.lua
+++ b/test/functional/api/window_spec.lua
@@ -170,7 +170,6 @@ describe('API/win', function()
it('updates the screen, and also when the window is unfocused', function()
local screen = Screen.new(30, 9)
- screen:attach()
insert('prologue')
feed('100o<esc>')
@@ -281,7 +280,6 @@ describe('API/win', function()
it('updates cursorline and statusline ruler in non-current window', function()
local screen = Screen.new(60, 8)
- screen:attach()
command('set ruler')
command('set cursorline')
insert([[
@@ -314,7 +312,6 @@ describe('API/win', function()
it('updates cursorcolumn in non-current window', function()
local screen = Screen.new(60, 8)
- screen:attach()
command('set cursorcolumn')
insert([[
aaa
@@ -857,7 +854,6 @@ describe('API/win', function()
it('with two diff windows', function()
local X = api.nvim_get_vvar('maxcol')
local screen = Screen.new(45, 22)
- screen:attach()
exec([[
set diffopt+=context:2 number
let expr = 'printf("%08d", v:val) .. repeat("!", v:val)'
@@ -975,7 +971,6 @@ describe('API/win', function()
it('with wrapped lines', function()
local X = api.nvim_get_vvar('maxcol')
local screen = Screen.new(45, 22)
- screen:attach()
exec([[
set number cpoptions+=n
call setline(1, repeat([repeat('foobar-', 36)], 3))
@@ -2557,7 +2552,6 @@ describe('API/win', function()
it('updates statusline when moving bottom split', function()
local screen = Screen.new(10, 10)
- screen:attach()
exec([[
set laststatus=0
belowright split