diff options
author | Jesse Harris <zigford@gmail.com> | 2019-11-09 13:43:00 +1000 |
---|---|---|
committer | Jesse Harris <zigford@gmail.com> | 2019-11-09 13:43:00 +1000 |
commit | f09cc26f8793fc65647ed90b61f9845de0e9d126 (patch) | |
tree | 2b6e3f2b627e959f7bb0ae1eda13866a5a16eb47 /ale_linters/powershell | |
parent | db6b1b5ecc17558f87f55b159f90ebf36677b6b3 (diff) | |
download | ale-f09cc26f8793fc65647ed90b61f9845de0e9d126.zip |
Default errorview in pwsh7 now concise
Diffstat (limited to 'ale_linters/powershell')
-rw-r--r-- | ale_linters/powershell/powershell.vim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ale_linters/powershell/powershell.vim b/ale_linters/powershell/powershell.vim index a63191fd..5f49f72c 100644 --- a/ale_linters/powershell/powershell.vim +++ b/ale_linters/powershell/powershell.vim @@ -12,6 +12,7 @@ endfunction " https://rkeithhill.wordpress.com/2007/10/30/powershell-quicktip-preparsing-scripts-to-check-for-syntax-errors/ function! ale_linters#powershell#powershell#GetCommand(buffer) abort let l:script = ['Param($Script); + \ $ErrorView = "Normal"; \ trap {$_;continue} & { \ $Contents = Get-Content -Path $Script; \ $Contents = [string]::Join([Environment]::NewLine, $Contents); |