summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjorn Neergaard <bjorn@neersighted.com>2018-11-29 13:48:17 -0700
committerBjorn Neergaard <bjorn@neersighted.com>2018-11-29 13:48:17 -0700
commit121ecf92629a93f48bac65035a5cce69a176657f (patch)
treeecd611607af957e7f4a3a8022cb56a910b3af349
parent0a384a49d371838903d8401c5358ec60f3f4266d (diff)
downloadale-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.vim3
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