]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.3.504 v7.3.504
authorBram Moolenaar <Bram@vim.org>
Wed, 25 Apr 2012 10:57:28 +0000 (12:57 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 25 Apr 2012 10:57:28 +0000 (12:57 +0200)
Problem:    Commands in help files are not highlighted.
Solution:   Allow for commands in backticks.  Adjust CTRL-] to remove the
            backticks.

src/ex_cmds.c
src/version.c

index 2f0f1f4d337a5746ff2a91cd15af36d1616194c8..3d3f12ab450d1b85fd7ec99035621bbf6bb0d4f4 100644 (file)
@@ -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;
+             }
+         }
        }
     }
 
index ea9bc62858f26949f292901f092e33e56af8b81d..3126205a90e52722ba31c010971921dbad4d9671 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    504,
 /**/
     503,
 /**/