mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
updated for version 7.3.504
Problem: Commands in help files are not highlighted. Solution: Allow for commands in backticks. Adjust CTRL-] to remove the backticks.
This commit is contained in:
@@ -5965,6 +5965,29 @@ find_help_tags(arg, num_matches, matches, keep_lang)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
*d = NUL;
|
*d = NUL;
|
||||||
|
|
||||||
|
if (*IObuff == '`')
|
||||||
|
{
|
||||||
|
if (d > IObuff + 2 && d[-1] == '`')
|
||||||
|
{
|
||||||
|
/* remove the backticks from `command` */
|
||||||
|
mch_memmove(IObuff, IObuff + 1, STRLEN(IObuff));
|
||||||
|
d[-2] = NUL;
|
||||||
|
}
|
||||||
|
else if (d > IObuff + 3 && d[-2] == '`' && d[-1] == ',')
|
||||||
|
{
|
||||||
|
/* remove the backticks and comma from `command`, */
|
||||||
|
mch_memmove(IObuff, IObuff + 1, STRLEN(IObuff));
|
||||||
|
d[-3] = NUL;
|
||||||
|
}
|
||||||
|
else if (d > IObuff + 4 && d[-3] == '`'
|
||||||
|
&& d[-2] == '\\' && d[-1] == '.')
|
||||||
|
{
|
||||||
|
/* remove the backticks and dot from `command`\. */
|
||||||
|
mch_memmove(IObuff, IObuff + 1, STRLEN(IObuff));
|
||||||
|
d[-4] = NUL;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -714,6 +714,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 */
|
||||||
|
/**/
|
||||||
|
504,
|
||||||
/**/
|
/**/
|
||||||
503,
|
503,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user