Loading ...
Sorry, an error occurred while loading the content.

Patch 7.3.504

Expand Messages
  • Bram Moolenaar
    Patch 7.3.504 Problem: Commands in help files are not highlighted. Solution: Allow for commands in backticks. Adjust CTRL-] to remove the backticks.
    Message 1 of 1 , Apr 25, 2012
    • 0 Attachment
      Patch 7.3.504
      Problem: Commands in help files are not highlighted.
      Solution: Allow for commands in backticks. Adjust CTRL-] to remove the
      backticks.
      Files: src/ex_cmds.c


      *** ../vim-7.3.503/src/ex_cmds.c 2012-04-05 16:04:58.000000000 +0200
      --- src/ex_cmds.c 2012-04-25 12:51:41.000000000 +0200
      ***************
      *** 3421,3427 ****
      * and re-attach to buffer, perhaps.
      */
      if (curwin->w_s == &(curwin->w_buffer->b_s))
      ! curwin->w_s = &(buf->b_s);
      #endif
      curwin->w_buffer = buf;
      curbuf = buf;
      --- 3421,3427 ----
      * and re-attach to buffer, perhaps.
      */
      if (curwin->w_s == &(curwin->w_buffer->b_s))
      ! curwin->w_s = &(buf->b_s);
      #endif
      curwin->w_buffer = buf;
      curbuf = buf;
      ***************
      *** 5965,5970 ****
      --- 5965,5993 ----
      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;
      + }
      + }
      }
      }

      *** ../vim-7.3.503/src/version.c 2012-04-25 12:28:05.000000000 +0200
      --- src/version.c 2012-04-25 12:46:43.000000000 +0200
      ***************
      *** 716,717 ****
      --- 716,719 ----
      { /* Add new patch number below this line */
      + /**/
      + 504,
      /**/

      --
      TIM: That is not an ordinary rabbit ... 'tis the most foul cruel and
      bad-tempered thing you ever set eyes on.
      ROBIN: You tit. I soiled my armour I was so scared!
      "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ an exciting new programming language -- http://www.Zimbu.org ///
      \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

      --
      You received this message from the "vim_dev" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php
    Your message has been successfully submitted and would be delivered to recipients shortly.