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.0.237 < prev    next >
Encoding:
Internet Message Format  |  2002-02-17  |  1.9 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.237
  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.0.237
  11. Problem:    In a C file, using the filetype plugin, re-indenting a comment
  12.         with two spaces after the middle "*" doesn't align properly.
  13. Solution:   Don't use a middle entry from a start/middle/end to line up with
  14.         the start of the comment when the start part doesn't match with
  15.         the actual comment start.
  16. Files:        src/misc1.c
  17.  
  18.  
  19. *** ../vim60.236/src/misc1.c    Tue Feb 12 12:14:36 2002
  20. --- src/misc1.c    Mon Feb 18 17:11:41 2002
  21. ***************
  22. *** 4890,4895 ****
  23. --- 4891,4901 ----
  24.                   amount = get_indent_lnum(curwin->w_cursor.lnum - 1);
  25.                   break;
  26.               }
  27. +             /* If the start comment string doesn't match with the
  28. +              * start of the comment, skip this entry. XXX */
  29. +             else if (STRNCMP(ml_get(trypos->lnum) + trypos->col,
  30. +                          lead_start, lead_start_len) != 0)
  31. +                 continue;
  32.               }
  33.               if (start_off != 0)
  34.               amount += start_off;
  35. *** ../vim60.236/src/version.c    Mon Feb 18 15:56:19 2002
  36. --- src/version.c    Mon Feb 18 17:09:25 2002
  37. ***************
  38. *** 608,609 ****
  39. --- 608,611 ----
  40.   {   /* Add new patch number below this line */
  41. + /**/
  42. +     237,
  43.   /**/
  44.  
  45. -- 
  46. ARTHUR: The swallow may fly south with the sun, or the house martin or the
  47.         plover seek warmer hot lands in winter, yet these are not strangers to
  48.         our land.
  49. SOLDIER: Are you suggesting coconuts migrate?
  50.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  51.  
  52.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  53. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  54. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  55.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  56.