From 121ecf92629a93f48bac65035a5cce69a176657f Mon Sep 17 00:00:00 2001 From: Bjorn Neergaard Date: Thu, 29 Nov 2018 13:48:17 -0700 Subject: [PATCH] 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. --- autoload/ale/debugging.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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