Skip to content

Commit

Permalink
if win32 _pyhon 0 else 1
Browse files Browse the repository at this point in the history
  • Loading branch information
fdobad committed Aug 16, 2023
1 parent 2a27e35 commit ac75140
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ If the ctags executable is not installed in one of the directories in your
`$PATH` environment variable you have to set the `g:tagbar_ctags_bin`
variable, see the documentation for more info.

Windows users should add `let g:tagbar_python = 0` to their vimrc.

## Quickstart

Put something like the following into your ~/.vimrc:
Expand Down
6 changes: 5 additions & 1 deletion autoload/tagbar.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3163,7 +3163,11 @@ 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)
if has('win32')
let py_version = get(g:, 'tagbar_python', 0)
else
let py_version = get(g:, 'tagbar_python', 1)
endif
silent let ctags_output = s:run_system(a:ctags_cmd, py_version)
endif

Expand Down

0 comments on commit ac75140

Please sign in to comment.