Skip to content

Releases: MiguelBarro/cpptags

Workaround issues loading session files

20 Nov 00:11
f8e4573
Compare
Choose a tag to compare

ftplugins as ordinary plugins are only loaded once. Though restoring sessions seems to arise issues with the 'tagfunc'.
it is recorded in the session as:

set tagfunc=s:cpptagfunc

but using it resolves the actual scriptname. for example:

:function /cpp
    function <snr>80_cpptagfunc

but after restoring a session a mismatch happens. By using :tag or :tsel it complains that <snr>80_cpptagfunc no longer exists and:

:function /cpp
    function <snr>84_cpptagfunc

that is, the ftpluing was reloaded but 'tagfunc' keeps pointing to the old one.
Fixing this is relatively easy. no longer reference a script function but a global one. in this case I define the function in an autoload/cpptags.vim script. By doing so:

set tagfunc=cpptags#cpptagfunc

and no mismatch is possible.

AutoInstall

08 Sep 00:20
Compare
Choose a tag to compare

AutoInstall support added.
To install :source the vimball file (cpptags.vmb).
This simplifies update which is performed automatically whenever :GLVS is called.

Initial release

07 Sep 01:29
Compare
Choose a tag to compare

To install :source the vimball file (cpptags.vmb).