File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ if !exists('g:vim_tags_gems_tags_command')
36
36
let g: vim_tags_gems_tags_command = " ctags -R -f Gemfile.lock.tags `bundle show --paths` 2>/dev/null &"
37
37
endif
38
38
39
- command ! - bang -nargs =0 TagsGenerate :call s: generate_tags (' <bang>' , 1 )
39
+ command ! - bang -nargs =0 TagsGenerate :call s: generate_tags (<bang> 0 , 1 )
40
40
41
41
" Generate options and custom dirs list
42
42
let options = []
@@ -58,7 +58,7 @@ let s:options = join(options, ' ')
58
58
59
59
fun ! s: generate_tags (bang , redraw )
60
60
" Remove existing tags
61
- if a: bang == ' ! '
61
+ if a: bang
62
62
for f in split (globpath (' .' , ' *.tags' , 1 ), ' \n' ) + [' tags' ]
63
63
call writefile ([], f , ' b' )
64
64
endfor
@@ -101,5 +101,5 @@ fun! s:generate_tags(bang, redraw)
101
101
endfun
102
102
103
103
if filereadable (' tags' ) && g: vim_tags_auto_generate
104
- au BufWritePost * call s: generate_tags (' ' , 0 )
104
+ au BufWritePost * call s: generate_tags (0 , 0 )
105
105
endif
You can’t perform that action at this time.
0 commit comments