|
Karsten Hopp |
30e2bb |
To: vim-dev@vim.org
|
|
Karsten Hopp |
30e2bb |
Subject: Patch 7.0.096
|
|
Karsten Hopp |
30e2bb |
Fcc: outbox
|
|
Karsten Hopp |
30e2bb |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
30e2bb |
Mime-Version: 1.0
|
|
Karsten Hopp |
30e2bb |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
30e2bb |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
30e2bb |
------------
|
|
Karsten Hopp |
30e2bb |
|
|
Karsten Hopp |
30e2bb |
Patch 7.0.096
|
|
Karsten Hopp |
30e2bb |
Problem: taglist() returns the filename relative to the tags file, while
|
|
Karsten Hopp |
30e2bb |
the directory of the tags file is unknown. (Hari Krishna Dara)
|
|
Karsten Hopp |
30e2bb |
Solution: Expand the file name. (Yegappan Lakshmanan)
|
|
Karsten Hopp |
30e2bb |
Files: src/tag.c
|
|
Karsten Hopp |
30e2bb |
|
|
Karsten Hopp |
30e2bb |
|
|
Karsten Hopp |
30e2bb |
*** ../vim-7.0.095/src/tag.c Thu Apr 27 23:40:34 2006
|
|
Karsten Hopp |
30e2bb |
--- src/tag.c Sun Sep 10 13:42:41 2006
|
|
Karsten Hopp |
30e2bb |
***************
|
|
Karsten Hopp |
30e2bb |
*** 3787,3792 ****
|
|
Karsten Hopp |
30e2bb |
--- 3787,3793 ----
|
|
Karsten Hopp |
30e2bb |
{
|
|
Karsten Hopp |
30e2bb |
int num_matches, i, ret;
|
|
Karsten Hopp |
30e2bb |
char_u **matches, *p;
|
|
Karsten Hopp |
30e2bb |
+ char_u *full_fname;
|
|
Karsten Hopp |
30e2bb |
dict_T *dict;
|
|
Karsten Hopp |
30e2bb |
tagptrs_T tp;
|
|
Karsten Hopp |
30e2bb |
long is_static;
|
|
Karsten Hopp |
30e2bb |
***************
|
|
Karsten Hopp |
30e2bb |
*** 3809,3823 ****
|
|
Karsten Hopp |
30e2bb |
if (list_append_dict(list, dict) == FAIL)
|
|
Karsten Hopp |
30e2bb |
ret = FAIL;
|
|
Karsten Hopp |
30e2bb |
|
|
Karsten Hopp |
30e2bb |
if (add_tag_field(dict, "name", tp.tagname, tp.tagname_end) == FAIL
|
|
Karsten Hopp |
30e2bb |
! || add_tag_field(dict, "filename", tp.fname,
|
|
Karsten Hopp |
30e2bb |
! tp.fname_end) == FAIL
|
|
Karsten Hopp |
30e2bb |
|| add_tag_field(dict, "cmd", tp.command,
|
|
Karsten Hopp |
30e2bb |
tp.command_end) == FAIL
|
|
Karsten Hopp |
30e2bb |
|| add_tag_field(dict, "kind", tp.tagkind,
|
|
Karsten Hopp |
30e2bb |
tp.tagkind_end) == FAIL
|
|
Karsten Hopp |
30e2bb |
|| dict_add_nr_str(dict, "static", is_static, NULL) == FAIL)
|
|
Karsten Hopp |
30e2bb |
ret = FAIL;
|
|
Karsten Hopp |
30e2bb |
|
|
Karsten Hopp |
30e2bb |
if (tp.command_end != NULL)
|
|
Karsten Hopp |
30e2bb |
{
|
|
Karsten Hopp |
30e2bb |
--- 3810,3827 ----
|
|
Karsten Hopp |
30e2bb |
if (list_append_dict(list, dict) == FAIL)
|
|
Karsten Hopp |
30e2bb |
ret = FAIL;
|
|
Karsten Hopp |
30e2bb |
|
|
Karsten Hopp |
30e2bb |
+ full_fname = tag_full_fname(&tp);
|
|
Karsten Hopp |
30e2bb |
if (add_tag_field(dict, "name", tp.tagname, tp.tagname_end) == FAIL
|
|
Karsten Hopp |
30e2bb |
! || add_tag_field(dict, "filename", full_fname,
|
|
Karsten Hopp |
30e2bb |
! NULL) == FAIL
|
|
Karsten Hopp |
30e2bb |
|| add_tag_field(dict, "cmd", tp.command,
|
|
Karsten Hopp |
30e2bb |
tp.command_end) == FAIL
|
|
Karsten Hopp |
30e2bb |
|| add_tag_field(dict, "kind", tp.tagkind,
|
|
Karsten Hopp |
30e2bb |
tp.tagkind_end) == FAIL
|
|
Karsten Hopp |
30e2bb |
|| dict_add_nr_str(dict, "static", is_static, NULL) == FAIL)
|
|
Karsten Hopp |
30e2bb |
ret = FAIL;
|
|
Karsten Hopp |
30e2bb |
+
|
|
Karsten Hopp |
30e2bb |
+ vim_free(full_fname);
|
|
Karsten Hopp |
30e2bb |
|
|
Karsten Hopp |
30e2bb |
if (tp.command_end != NULL)
|
|
Karsten Hopp |
30e2bb |
{
|
|
Karsten Hopp |
30e2bb |
*** ../vim-7.0.095/src/version.c Sun Sep 10 13:22:26 2006
|
|
Karsten Hopp |
30e2bb |
--- src/version.c Sun Sep 10 13:52:01 2006
|
|
Karsten Hopp |
30e2bb |
***************
|
|
Karsten Hopp |
30e2bb |
*** 668,669 ****
|
|
Karsten Hopp |
30e2bb |
--- 668,671 ----
|
|
Karsten Hopp |
30e2bb |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
30e2bb |
+ /**/
|
|
Karsten Hopp |
30e2bb |
+ 96,
|
|
Karsten Hopp |
30e2bb |
/**/
|
|
Karsten Hopp |
30e2bb |
|
|
Karsten Hopp |
30e2bb |
--
|
|
Karsten Hopp |
30e2bb |
The early bird gets the worm. If you want something else for
|
|
Karsten Hopp |
30e2bb |
breakfast, get up later.
|
|
Karsten Hopp |
30e2bb |
|
|
Karsten Hopp |
30e2bb |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
30e2bb |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
30e2bb |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
30e2bb |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|