diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-06-25 17:52:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-25 17:52:39 +0200 |
commit | 9f592780b5bb8c69e18784c440c711dc5a4684e2 (patch) | |
tree | 34c4abe44693550d88221cbd140828d2657dcd7a /runtime | |
parent | b7084fef4c850d0352488b14dcff0f36a7e75e1c (diff) | |
parent | f977f9445f7689fc32a136108ff92b3c2137968c (diff) | |
download | rneovim-9f592780b5bb8c69e18784c440c711dc5a4684e2.tar.gz rneovim-9f592780b5bb8c69e18784c440c711dc5a4684e2.tar.bz2 rneovim-9f592780b5bb8c69e18784c440c711dc5a4684e2.zip |
Merge pull request #16271 from 3N4N/fix-15913
fix: make_filter_cmd for powershell as shell
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/options.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 20805377d8..4d86f792da 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -5292,9 +5292,9 @@ A jump table for the options with a short description can be found at |Q_op|. unescaping, so to keep yourself sane use |:let-&| like shown above. *shell-powershell* To use PowerShell: > - let &shell = has('win32') ? 'powershell' : 'pwsh' + let &shell = executable('pwsh') ? 'pwsh' : 'powershell' let &shellcmdflag = '-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;' - let &shellredir = '2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode' + let &shellredir = '-RedirectStandardOutput %s -NoNewWindow -Wait' let &shellpipe = '2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode' set shellquote= shellxquote= |