aboutsummaryrefslogtreecommitdiff
path: root/test/functional/terminal/cursor_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-02-26 19:28:18 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-02-26 19:40:11 +0800
commit0545bd21805b25b95ed6290d17e2c5804e9dbd98 (patch)
tree6708e3d7664075eb0d756996b8d046fa9d606f43 /test/functional/terminal/cursor_spec.lua
parent005a7aa1670841dfdffb7559161a7d37d6c14bc4 (diff)
downloadrneovim-0545bd21805b25b95ed6290d17e2c5804e9dbd98.tar.gz
rneovim-0545bd21805b25b95ed6290d17e2c5804e9dbd98.tar.bz2
rneovim-0545bd21805b25b95ed6290d17e2c5804e9dbd98.zip
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)