Skip to content

Commit

Permalink
#682 gvim & pythonx
Browse files Browse the repository at this point in the history
  • Loading branch information
fdobad committed Aug 14, 2023
1 parent be56353 commit d33682b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/tagbar.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3107,6 +3107,7 @@ function! s:run_system(cmd, version) abort
let l:pc = 0
exec pyx . 'import subprocess, vim'
exec pyx . '__argv = {"args":vim.eval("a:cmd"), "shell":True}'
exec pyx . '__argv["stdin"] = subprocess.DEVNULL'
exec pyx . '__argv["stdout"] = subprocess.PIPE'
exec pyx . '__argv["stderr"] = subprocess.STDOUT'
exec pyx . '__argv["errors"] = "ignore"'
Expand Down Expand Up @@ -3162,7 +3163,7 @@ function! s:ExecuteCtags(ctags_cmd) abort
call tagbar#debug#log('Exit code: ' . v:shell_error)
redraw!
else
let py_version = get(g:, 'tagbar_python', 1)
let py_version = get(g:, 'tagbar_python', 0)
silent let ctags_output = s:run_system(a:ctags_cmd, py_version)
endif

Expand Down

0 comments on commit d33682b

Please sign in to comment.