Commits

abudden committed 90d7772

Ensure read types has been run once - if not run on buffer entry.

Comments (0)

Files changed (1)

autoload/TagHighlight/BufferEntry.vim

 	if ! exists('b:TagHighlightPrivate')
 		let b:TagHighlightPrivate = {}
 	endif
+	if ! has_key(b:TagHighlightPrivate, 'ReadTypesCompleted')
+		" In case it hasn't already been run, run the extension
+		" checker.
+		call TagHighlight#ReadTypes#ReadTypesByExtension()
+	endif
 
 	if TagHighlight#Option#GetOption('EnableCscope')
 		call TagHighlight#Cscope#BufEnter()