mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
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
This commit is contained in:
committed by
Lewis Russell
parent
b5c0290803
commit
47f2769b46
@ -409,6 +409,17 @@ function M.is_os(s)
|
||||
)
|
||||
end
|
||||
|
||||
local architecture = uv.os_uname().machine
|
||||
|
||||
--- @param s 'x86_64'|'arm64'
|
||||
--- @return boolean
|
||||
function M.is_arch(s)
|
||||
if not (s == 'x86_64' or s == 'arm64') then
|
||||
error('unknown architecture: ' .. tostring(s))
|
||||
end
|
||||
return s == architecture
|
||||
end
|
||||
|
||||
local tmpname_id = 0
|
||||
local tmpdir = os.getenv('TMPDIR') or os.getenv('TEMP')
|
||||
local tmpdir_is_local = not not (tmpdir and tmpdir:find('Xtest'))
|
||||
|
Reference in New Issue
Block a user