Only set the unnamed register at the end of :ALEInfoToClipboard

This fixes performance problems in Neovim, where every character results
in spawning a new clipboard-tool process.

Behaviour is not similarly pathological in Vim, but it still results in
an unnecessary amount of register churn.
This commit is contained in:
Bjorn Neergaard 2018-11-29 13:48:17 -07:00
parent 0a384a49d3
commit 121ecf9262
1 changed files with 2 additions and 1 deletions

View File

@ -237,10 +237,11 @@ function! ale#debugging#Info() abort
endfunction
function! ale#debugging#InfoToClipboard() abort
redir @+>
redir => l:output
silent call ale#debugging#Info()
redir END
let @+ = l:output
call s:Echo('ALEInfo copied to your clipboard')
endfunction