aboutsummaryrefslogtreecommitdiff
path: root/test/functional/terminal/cursor_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-02-26 21:17:38 +0800
committerGitHub <noreply@github.com>2022-02-26 21:17:38 +0800
commit41f309adeb9f025d80f2b499f57d68c52b58e649 (patch)
tree3a95bd41ae95698c769d1b3d893478fb6b61bd76 /test/functional/terminal/cursor_spec.lua
parentd0f8f76224f501d919ba6c8a5cd717de76903b34 (diff)
parent0545bd21805b25b95ed6290d17e2c5804e9dbd98 (diff)
downloadrneovim-41f309adeb9f025d80f2b499f57d68c52b58e649.tar.gz
rneovim-41f309adeb9f025d80f2b499f57d68c52b58e649.tar.bz2
rneovim-41f309adeb9f025d80f2b499f57d68c52b58e649.zip
Merge pull request #17527 from zeertzjq/test-pending-win32
test: use helpers.pending_win32(pending) instead of iswin()
Diffstat (limited to 'test/functional/terminal/cursor_spec.lua')
-rw-r--r--test/functional/terminal/cursor_spec.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/functional/terminal/cursor_spec.lua b/test/functional/terminal/cursor_spec.lua
index d120995c82..3b905f1f56 100644
--- a/test/functional/terminal/cursor_spec.lua
+++ b/test/functional/terminal/cursor_spec.lua
@@ -8,7 +8,6 @@ local eq, eval = helpers.eq, helpers.eval
local feed_command = helpers.feed_command
local hide_cursor = thelpers.hide_cursor
local show_cursor = thelpers.show_cursor
-local iswin = helpers.iswin
describe(':terminal cursor', function()
local screen
@@ -178,7 +177,7 @@ describe('cursor with customized highlighting', function()
end)
describe('buffer cursor position is correct in terminal without number column', function()
- if not iswin() then
+ if helpers.pending_win32(pending) then return end
local screen
local function setup_ex_register(str)
@@ -526,11 +525,10 @@ describe('buffer cursor position is correct in terminal without number column',
eq({6, 1}, eval('nvim_win_get_cursor(0)'))
end)
end)
- end
end)
describe('buffer cursor position is correct in terminal with number column', function()
- if not iswin() then
+ if helpers.pending_win32(pending) then return end
local screen
local function setup_ex_register(str)
@@ -881,5 +879,4 @@ describe('buffer cursor position is correct in terminal with number column', fun
eq({6, 1}, eval('nvim_win_get_cursor(0)'))
end)
end)
- end
end)