From 2b1f655063cf4a553656943791b0aa4bb3b97a76 Mon Sep 17 00:00:00 2001 From: John Szakmeister Date: Sun, 20 Jan 2013 10:54:16 -0500 Subject: [PATCH] When switching to a buffer that is unsupported, clear current. --- autoload/tagbar.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 7edc25d..99464b7 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -3056,6 +3056,7 @@ function! s:AutoUpdate(fname, force) abort " Don't do anything if the file isn't supported if !s:IsValidFile(a:fname, sftype) call s:LogDebugMessage('Not a valid file, stopping processing') + call s:known_files.setCurrent({}) return endif