File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ if !exists('g:vim_tags_gems_tags_command')
36
36
let g: vim_tags_gems_tags_command = " !ctags -R -f gems.tags `bundle show --paths` 2>/dev/null &"
37
37
endif
38
38
39
- command ! -nargs =0 TagsGenerate :call s: generate_tags ()
39
+ command ! -nargs =0 TagsGenerate :call s: generate_tags (1 )
40
40
41
- fun ! s: generate_tags ()
41
+ fun ! s: generate_tags (redraw )
42
42
silent ! exe g: vim_tags_project_tags_command
43
43
let gemfile_time = getftime (' Gemfile.lock' )
44
44
if gemfile_time > -1
@@ -52,11 +52,14 @@ fun! s:generate_tags()
52
52
set tags += " gems.tags"
53
53
endif
54
54
endif
55
+ if a: redraw
56
+ redraw !
57
+ endif
55
58
endfun
56
59
57
60
if filereadable (' tags' )
58
61
if g: vim_tags_auto_generate
59
- au BufWritePost * call s: generate_tags ()
62
+ au BufWritePost * call s: generate_tags (0 )
60
63
endif
61
64
endif
62
65
You can’t perform that action at this time.
0 commit comments