From a5090717dd8862be0a47a96731c6120ace544fe1 Mon Sep 17 00:00:00 2001 From: raven42 Date: Mon, 3 Aug 2020 07:30:13 -0500 Subject: [PATCH] Add function tabgar:Update() to manually trigger AutoUpdate() (#633) Co-authored-by: David Hegland --- autoload/tagbar.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index a36467a..932a682 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -3555,6 +3555,12 @@ endfunction " }}}2 +" tagbar#Update() {{{2 +" Trigger an AutoUpdate() of the currently opened file +function! tagbar#Update() abort + call s:AutoUpdate(fnamemodify(expand('%'), ':p'), 0) +endfunction + " tagbar#toggle_pause() {{{2 function! tagbar#toggle_pause() abort let s:paused = !s:paused