Fix #2438 - Print a friendly message when the clipboard is not available

This commit is contained in:
w0rp
2019-05-28 20:27:10 +01:00
parent 67d7caee30
commit 90b1ea230d
2 changed files with 21 additions and 0 deletions

View File

@@ -238,6 +238,12 @@ function! ale#debugging#Info() abort
endfunction
function! ale#debugging#InfoToClipboard() abort
if !has('clipboard')
call s:Echo('clipboard not available. Try :ALEInfoToFile instead.')
return
endif
redir => l:output
silent call ale#debugging#Info()
redir END