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:
parent
0a384a49d3
commit
121ecf9262
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user