diff options
author | Bjorn Neergaard <bjorn@neersighted.com> | 2018-11-29 13:48:17 -0700 |
---|---|---|
committer | Bjorn Neergaard <bjorn@neersighted.com> | 2018-11-29 13:48:17 -0700 |
commit | 121ecf92629a93f48bac65035a5cce69a176657f (patch) | |
tree | ecd611607af957e7f4a3a8022cb56a910b3af349 | |
parent | 0a384a49d371838903d8401c5358ec60f3f4266d (diff) | |
download | ale-121ecf92629a93f48bac65035a5cce69a176657f.zip |
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.
-rw-r--r-- | autoload/ale/debugging.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/autoload/ale/debugging.vim b/autoload/ale/debugging.vim index 6c2bfbee..3aed38fe 100644 --- a/autoload/ale/debugging.vim +++ b/autoload/ale/debugging.vim @@ -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 |