Hari Krishna Dara wrote:
> When taglist() returns matches, each match is hash and the "filename"
> key gives the filename where the tag is expected to be found. This works
> as expected, but the problem is that the filename is returned as it is
> found in the tags file, which could be a relative path from the location
> of the tags file itself. If the current directory of Vim is not the same
> as the tags file itself, then there is no way to findout what the
> absolute path of the filename is. I just verified that the tag commands
> (such as :ts) converte them to absolute paths in this case.
>
> A workaround in this case would be to run taglist() multiple times once
> for each entry in the 'tags' such that you know to which directory the
> paths are relative.
Right, the path of the tags file should be prepended to the filename.
There already is an internal function for that, thus it's relatively
simple.
--
ARTHUR: Be quiet!
DENNIS: Well you can't expect to wield supreme executive power just 'cause
some watery tart threw a sword at you!
ARTHUR: Shut up!
DENNIS: I mean, if I went around sayin' I was an empereror just because some
moistened bint had lobbed a scimitar at me they'd put me away!
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///