forked from aniani/vim
updated for version 7.2-068
This commit is contained in:
21
src/tag.c
21
src/tag.c
@@ -2725,7 +2725,24 @@ parse_tag_line(lbuf,
|
|||||||
*/
|
*/
|
||||||
p_7f = vim_strchr(lbuf, 0x7f);
|
p_7f = vim_strchr(lbuf, 0x7f);
|
||||||
if (p_7f == NULL)
|
if (p_7f == NULL)
|
||||||
|
{
|
||||||
|
etag_fail:
|
||||||
|
if (vim_strchr(lbuf, '\n') == NULL)
|
||||||
|
{
|
||||||
|
/* Truncated line. Ignore it. */
|
||||||
|
if (p_verbose >= 5)
|
||||||
|
{
|
||||||
|
verbose_enter();
|
||||||
|
MSG(_("Ignoring long line in tags file"));
|
||||||
|
verbose_leave();
|
||||||
|
}
|
||||||
|
tagp->command = lbuf;
|
||||||
|
tagp->tagname = lbuf;
|
||||||
|
tagp->tagname_end = lbuf;
|
||||||
|
return OK;
|
||||||
|
}
|
||||||
return FAIL;
|
return FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
/* Find ^A. If not found the line number is after the 0x7f */
|
/* Find ^A. If not found the line number is after the 0x7f */
|
||||||
p = vim_strchr(p_7f, Ctrl_A);
|
p = vim_strchr(p_7f, Ctrl_A);
|
||||||
@@ -2735,7 +2752,7 @@ parse_tag_line(lbuf,
|
|||||||
++p;
|
++p;
|
||||||
|
|
||||||
if (!VIM_ISDIGIT(*p)) /* check for start of line number */
|
if (!VIM_ISDIGIT(*p)) /* check for start of line number */
|
||||||
return FAIL;
|
goto etag_fail;
|
||||||
tagp->command = p;
|
tagp->command = p;
|
||||||
|
|
||||||
|
|
||||||
@@ -2749,7 +2766,7 @@ parse_tag_line(lbuf,
|
|||||||
/* find end of tagname */
|
/* find end of tagname */
|
||||||
for (p = p_7f - 1; !vim_iswordc(*p); --p)
|
for (p = p_7f - 1; !vim_iswordc(*p); --p)
|
||||||
if (p == lbuf)
|
if (p == lbuf)
|
||||||
return FAIL;
|
goto etag_fail;
|
||||||
tagp->tagname_end = p + 1;
|
tagp->tagname_end = p + 1;
|
||||||
while (p >= lbuf && vim_iswordc(*p))
|
while (p >= lbuf && vim_iswordc(*p))
|
||||||
--p;
|
--p;
|
||||||
|
@@ -676,6 +676,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
68,
|
||||||
/**/
|
/**/
|
||||||
67,
|
67,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user