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 / 6.1.186 < prev    next >
Encoding:
Internet Message Format  |  2002-09-16  |  2.2 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.186
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.1.186 (depends on 6.1.177)
  11. Problem:    ":wincmd" does not allow a following comment. (Aric Blumer)
  12. Solution:   Check for a following double quote.
  13. Files:        src/ex_docmd.c
  14.  
  15.  
  16. *** ../vim61.185/src/ex_docmd.c    Sat Sep 14 17:05:26 2002
  17. --- src/ex_docmd.c    Tue Sep 17 18:36:40 2002
  18. ***************
  19. *** 6171,6177 ****
  20.       exarg_T    *eap;
  21.   {
  22.       int        xchar = NUL;
  23. !     int        n;
  24.   
  25.       if (*eap->arg == 'g' || *eap->arg == Ctrl_G)
  26.       {
  27. --- 6171,6177 ----
  28.       exarg_T    *eap;
  29.   {
  30.       int        xchar = NUL;
  31. !     char_u    *p;
  32.   
  33.       if (*eap->arg == 'g' || *eap->arg == Ctrl_G)
  34.       {
  35. ***************
  36. *** 6182,6194 ****
  37.           return;
  38.       }
  39.       xchar = eap->arg[1];
  40. !     n = 2;
  41.       }
  42.       else
  43. !     n = 1;
  44.   
  45. !     eap->nextcmd = check_nextcmd(eap->arg + n);
  46. !     if (*skipwhite(eap->arg + n) != NUL && eap->nextcmd == NULL)
  47.       EMSG(_(e_invarg));
  48.       else
  49.       do_window(*eap->arg, eap->addr_count > 0 ? eap->line2 : 0L, xchar);
  50. --- 6182,6195 ----
  51.           return;
  52.       }
  53.       xchar = eap->arg[1];
  54. !     p = eap->arg + 2;
  55.       }
  56.       else
  57. !     p = eap->arg + 1;
  58.   
  59. !     eap->nextcmd = check_nextcmd(p);
  60. !     p = skipwhite(p);
  61. !     if (*p != NUL && *p != '"' && eap->nextcmd == NULL)
  62.       EMSG(_(e_invarg));
  63.       else
  64.       do_window(*eap->arg, eap->addr_count > 0 ? eap->line2 : 0L, xchar);
  65. *** ../vim61.185/src/version.c    Tue Sep 17 21:19:42 2002
  66. --- src/version.c    Tue Sep 17 21:34:54 2002
  67. ***************
  68. *** 608,609 ****
  69. --- 608,611 ----
  70.   {   /* Add new patch number below this line */
  71. + /**/
  72. +     186,
  73.   /**/
  74.  
  75. -- 
  76. For society, it's probably a good thing that engineers value function over
  77. appearance.  For example, you wouldn't want engineers to build nuclear power
  78. plants that only _look_ like they would keep all the radiation inside.
  79.                 (Scott Adams - The Dilbert principle)
  80.  
  81.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  82. ///          Creator of Vim - Vi IMproved -- http://www.vim.org          \\\
  83. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  84.  \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
  85.