Fix bug with balloonexpr

This commit is contained in:
Jan Larres 2011-03-28 17:18:24 +13:00
parent 15d82f669c
commit 4b7aca60a7

View File

@ -1913,8 +1913,8 @@ function! s:ShowPrototype()
if has_key(taginfo, 'prototype')
echo taginfo.prototype
else
echo taginfo.name ':'
\ taginfo.numtags (taginfo.numtags > 1 ? 'tags' : 'tag')
echo taginfo.name . ': ' .
\ taginfo.numtags . ' ' . (taginfo.numtags > 1 ? 'tags' : 'tag')
endif
endfunction
@ -2255,8 +2255,8 @@ function! TagbarBalloonExpr()
if has_key(taginfo, 'prototype')
return taginfo.prototype
else
return taginfo.name ':'
\ taginfo.numtags (taginfo.numtags > 1 ? 'tags' : 'tag')
return taginfo.name . ': ' .
\ taginfo.numtags . ' ' . (taginfo.numtags > 1 ? 'tags' : 'tag')
endif
endfunction