Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Only determine extension once

  • Loading branch information...
commit bff765b957b44988975565272eb4f6359543b4ec 1 parent f2c072d
@majutsushi authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 autoload/tagbar.vim
View
5 autoload/tagbar.vim
@@ -1816,8 +1816,9 @@ function! s:ProcessFile(fname, ftype) abort
endif
let tempfile = tempname()
- if fnamemodify(fileinfo.fpath, ':e') != ''
- let tempfile .= '.' . fnamemodify(fileinfo.fpath, ':e')
+ let ext = fnamemodify(fileinfo.fpath, ':e')
+ if ext != ''
+ let tempfile .= '.' . ext
endif
call writefile(getbufline(fileinfo.bufnr, 1, '$'), tempfile)
Please sign in to comment.
Something went wrong with that request. Please try again.