1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 19:40:27 +01:00

Use universal_newlines for Popen call (#733)

Closes #629
This commit is contained in:
raven42
2021-01-06 07:34:09 -06:00
committed by GitHub
parent f8e8f8cfb4
commit 4c1a1a1bc6

View File

@@ -3035,7 +3035,7 @@ function! s:run_system(cmd, version) abort
exec pyx . '__argv = {"args":vim.eval("a:cmd"), "shell":True}'
exec pyx . '__argv["stdout"] = subprocess.PIPE'
exec pyx . '__argv["stderr"] = subprocess.STDOUT'
exec pyx . '__pp = subprocess.Popen(**__argv)'
exec pyx . '__pp = subprocess.Popen(**__argv, universal_newlines=True)'
exec pyx . '__return_text = __pp.stdout.read()'
exec pyx . '__pp.stdout.close()'
exec pyx . '__return_code = __pp.wait()'