mirror of
https://github.com/dense-analysis/ale
synced 2025-01-19 13:40:42 +00:00
Fix breakage w/ plugins that inadvertently trigger ALE in execute()
(#3719)
Co-authored-by: w0rp <w0rp@users.noreply.github.com>
This commit is contained in:
parent
88817b3780
commit
ad27e921d7
@ -259,9 +259,7 @@ function! ale#debugging#InfoToClipboard() abort
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
redir => l:output
|
let l:output = execute('call ale#debugging#Info()')
|
||||||
silent call ale#debugging#Info()
|
|
||||||
redir END
|
|
||||||
|
|
||||||
let @+ = l:output
|
let @+ = l:output
|
||||||
call s:Echo('ALEInfo copied to your clipboard')
|
call s:Echo('ALEInfo copied to your clipboard')
|
||||||
@ -270,9 +268,7 @@ endfunction
|
|||||||
function! ale#debugging#InfoToFile(filename) abort
|
function! ale#debugging#InfoToFile(filename) abort
|
||||||
let l:expanded_filename = expand(a:filename)
|
let l:expanded_filename = expand(a:filename)
|
||||||
|
|
||||||
redir => l:output
|
let l:output = execute('call ale#debugging#Info()')
|
||||||
silent call ale#debugging#Info()
|
|
||||||
redir END
|
|
||||||
|
|
||||||
call writefile(split(l:output, "\n"), l:expanded_filename)
|
call writefile(split(l:output, "\n"), l:expanded_filename)
|
||||||
call s:Echo('ALEInfo written to ' . l:expanded_filename)
|
call s:Echo('ALEInfo written to ' . l:expanded_filename)
|
||||||
|
@ -4,9 +4,7 @@
|
|||||||
function! ale#filetypes#LoadExtensionMap() abort
|
function! ale#filetypes#LoadExtensionMap() abort
|
||||||
" Output includes:
|
" Output includes:
|
||||||
" '*.erl setf erlang'
|
" '*.erl setf erlang'
|
||||||
redir => l:output
|
let l:output = execute('exec "autocmd"')
|
||||||
silent exec 'autocmd'
|
|
||||||
redir end
|
|
||||||
|
|
||||||
let l:map = {}
|
let l:map = {}
|
||||||
|
|
||||||
|
@ -52,9 +52,7 @@ endif
|
|||||||
function! ale#sign#SetUpDefaultColumnWithoutErrorsHighlight() abort
|
function! ale#sign#SetUpDefaultColumnWithoutErrorsHighlight() abort
|
||||||
let l:verbose = &verbose
|
let l:verbose = &verbose
|
||||||
set verbose=0
|
set verbose=0
|
||||||
redir => l:output
|
let l:output = execute('highlight SignColumn', 'silent')
|
||||||
0verbose silent highlight SignColumn
|
|
||||||
redir end
|
|
||||||
let &verbose = l:verbose
|
let &verbose = l:verbose
|
||||||
|
|
||||||
let l:highlight_syntax = join(split(l:output)[2:])
|
let l:highlight_syntax = join(split(l:output)[2:])
|
||||||
@ -171,10 +169,10 @@ endfunction
|
|||||||
|
|
||||||
" Read sign data for a buffer to a list of lines.
|
" Read sign data for a buffer to a list of lines.
|
||||||
function! ale#sign#ReadSigns(buffer) abort
|
function! ale#sign#ReadSigns(buffer) abort
|
||||||
redir => l:output
|
let l:output = execute(
|
||||||
silent execute 'sign place ' . s:GroupCmd() . s:PriorityCmd()
|
\ 'sign place ' . s:GroupCmd() . s:PriorityCmd()
|
||||||
\ . ' buffer=' . a:buffer
|
\ . ' buffer=' . a:buffer
|
||||||
redir end
|
\ )
|
||||||
|
|
||||||
return split(l:output, "\n")
|
return split(l:output, "\n")
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user