mirror of
https://github.com/neovim/neovim.git
synced 2026-07-22 00:51:33 +00:00
Merge pull request #1555 from jszakmeister/silent-xclip-find-executable
Avoid printing an error response when detecting xclip.
This commit is contained in:
@@ -22,11 +22,9 @@ end
|
||||
|
||||
-- Some tests require the xclip program and a x server.
|
||||
local xclip = nil
|
||||
do
|
||||
do
|
||||
if os.getenv('DISPLAY') then
|
||||
local proc = io.popen('which xclip')
|
||||
xclip = proc:read()
|
||||
proc:close()
|
||||
xclip = (os.execute('command -v xclip > /dev/null 2>&1') == 0)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user