home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.3 / 7.3.504 < prev    next >
Encoding:
Internet Message Format  |  2012-11-20  |  2.5 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.504
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.504
  11. Problem:    Commands in help files are not highlighted.
  12. Solution:   Allow for commands in backticks.  Adjust CTRL-] to remove the
  13.         backticks.
  14. Files:        src/ex_cmds.c
  15.  
  16.  
  17. *** ../vim-7.3.503/src/ex_cmds.c    2012-04-05 16:04:58.000000000 +0200
  18. --- src/ex_cmds.c    2012-04-25 12:51:41.000000000 +0200
  19. ***************
  20. *** 3421,3427 ****
  21.                * and re-attach to buffer, perhaps.
  22.                */
  23.               if (curwin->w_s == &(curwin->w_buffer->b_s))
  24. !                 curwin->w_s = &(buf->b_s);
  25.   #endif
  26.               curwin->w_buffer = buf;
  27.               curbuf = buf;
  28. --- 3421,3427 ----
  29.                * and re-attach to buffer, perhaps.
  30.                */
  31.               if (curwin->w_s == &(curwin->w_buffer->b_s))
  32. !             curwin->w_s = &(buf->b_s);
  33.   #endif
  34.               curwin->w_buffer = buf;
  35.               curbuf = buf;
  36. ***************
  37. *** 5965,5970 ****
  38. --- 5965,5993 ----
  39.           break;
  40.         }
  41.         *d = NUL;
  42. +       if (*IObuff == '`')
  43. +       {
  44. +           if (d > IObuff + 2 && d[-1] == '`')
  45. +           {
  46. +           /* remove the backticks from `command` */
  47. +           mch_memmove(IObuff, IObuff + 1, STRLEN(IObuff));
  48. +           d[-2] = NUL;
  49. +           }
  50. +           else if (d > IObuff + 3 && d[-2] == '`' && d[-1] == ',')
  51. +           {
  52. +           /* remove the backticks and comma from `command`, */
  53. +           mch_memmove(IObuff, IObuff + 1, STRLEN(IObuff));
  54. +           d[-3] = NUL;
  55. +           }
  56. +           else if (d > IObuff + 4 && d[-3] == '`'
  57. +                          && d[-2] == '\\' && d[-1] == '.')
  58. +           {
  59. +           /* remove the backticks and dot from `command`\. */
  60. +           mch_memmove(IObuff, IObuff + 1, STRLEN(IObuff));
  61. +           d[-4] = NUL;
  62. +           }
  63. +       }
  64.       }
  65.       }
  66.   
  67. *** ../vim-7.3.503/src/version.c    2012-04-25 12:28:05.000000000 +0200
  68. --- src/version.c    2012-04-25 12:46:43.000000000 +0200
  69. ***************
  70. *** 716,717 ****
  71. --- 716,719 ----
  72.   {   /* Add new patch number below this line */
  73. + /**/
  74. +     504,
  75.   /**/
  76.  
  77. -- 
  78. TIM:   That is not an ordinary rabbit ... 'tis the most foul cruel and
  79.        bad-tempered thing you ever set eyes on.
  80. ROBIN: You tit.  I soiled my armour I was so scared!
  81.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  82.  
  83.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  84. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  85. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  86.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  87.