aboutsummaryrefslogtreecommitdiff
path: root/test/functional/plugin/man_spec.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-12-13 14:22:59 +0000
committerLewis Russell <me@lewisr.dev>2024-12-16 16:05:08 +0000
commit47f2769b462eb6bd1c10efec3c32ed55134ce628 (patch)
tree67194cdaa67e06e1f52288dc5abbd724db8f0286 /test/functional/plugin/man_spec.lua
parentb5c0290803508c0dc996a9bed70f5fa9ceb93c44 (diff)
downloadrneovim-47f2769b462eb6bd1c10efec3c32ed55134ce628.tar.gz
rneovim-47f2769b462eb6bd1c10efec3c32ed55134ce628.tar.bz2
rneovim-47f2769b462eb6bd1c10efec3c32ed55134ce628.zip
fix(Man): completion on Mac
Problem: `man -w` does not work on recent versions of MacOs. Solution: Make it so an empty result is interpreted as an error unless silent=true
Diffstat (limited to 'test/functional/plugin/man_spec.lua')
-rw-r--r--test/functional/plugin/man_spec.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/plugin/man_spec.lua b/test/functional/plugin/man_spec.lua
index 8906e60dce..e3f3de6252 100644
--- a/test/functional/plugin/man_spec.lua
+++ b/test/functional/plugin/man_spec.lua
@@ -263,4 +263,14 @@ describe(':Man', function()
{ '1', 'other_man' },
}, get_search_history('other_man(1)'))
end)
+
+ it('can complete', function()
+ t.skip(t.is_os('mac') and t.is_arch('x86_64'), 'not supported on intel mac')
+ eq(
+ true,
+ exec_lua(function()
+ return #require('man').man_complete('f', 'Man g') > 0
+ end)
+ )
+ end)
end)