summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <bram@vim.org>2012-04-25 12:57:28 +0200
committerBram Moolenaar <bram@vim.org>2012-04-25 12:57:28 +0200
commit3dc2cad63260b5f959cc9b7bbb41302d0d2b7417 (patch)
tree7e585a40a999c32c2f302fbe4bcba4a25043b731
parent6f1b2de3a4d02e892f7dacc50e8cfa750558574e (diff)
downloadvim-3dc2cad63260b5f959cc9b7bbb41302d0d2b7417.tar.gz
updated for version 7.3.504v7.3.504v7-3-504
Problem: Commands in help files are not highlighted. Solution: Allow for commands in backticks. Adjust CTRL-] to remove the backticks.
-rw-r--r--src/ex_cmds.c25
-rw-r--r--src/version.c2
2 files changed, 26 insertions, 1 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 2f0f1f4d..3d3f12ab 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -3421,7 +3421,7 @@ do_ecmd(fnum, ffname, sfname, eap, newlnum, flags, oldwin)
* and re-attach to buffer, perhaps.
*/
if (curwin->w_s == &(curwin->w_buffer->b_s))
- curwin->w_s = &(buf->b_s);
+ curwin->w_s = &(buf->b_s);
#endif
curwin->w_buffer = buf;
curbuf = buf;
@@ -5965,6 +5965,29 @@ find_help_tags(arg, num_matches, matches, keep_lang)
break;
}
*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;
+ }
+ }
}
}
diff --git a/src/version.c b/src/version.c
index ea9bc628..3126205a 100644
--- a/src/version.c
+++ b/src/version.c
@@ -715,6 +715,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 504,
+/**/
503,
/**/
502,