Skip to content

Commit

Permalink
Merge pull request #2110 from w0rp/lazy-clipboard
Browse files Browse the repository at this point in the history
Optimize :ALEIntoToClipboard to only copy to clipboard once
  • Loading branch information
RyanSquared authored Nov 30, 2018
2 parents 8176f79 + 121ecf9 commit 1d4f985
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/ale/debugging.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1d4f985

Please sign in to comment.