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

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.231
  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.231
  11. Problem:    "gd" and "gD" don't work when the variable matches in a comment
  12.         just above the match to be found. (Servatius Brandt)
  13. Solution:   Continue searching in the first column below the comment.
  14. Files:        src/normal.c
  15.  
  16.  
  17. *** ../vim60.230/src/normal.c    Mon Feb 18 10:46:53 2002
  18. --- src/normal.c    Mon Feb 18 11:21:59 2002
  19. ***************
  20. *** 3662,3671 ****
  21.       while ((t = searchit(curwin, curbuf, &curwin->w_cursor, FORWARD, pat, 1L, 0,
  22.                                    RE_LAST)) != FAIL
  23.   #ifdef FEAT_COMMENTS
  24. !         && get_leader_len(ml_get_curline(), NULL, FALSE)
  25.   #endif
  26.           && old_pos.lnum > curwin->w_cursor.lnum)
  27.       ++curwin->w_cursor.lnum;
  28.       if (t == FAIL || old_pos.lnum <= curwin->w_cursor.lnum)
  29.       {
  30.       clearopbeep(oap);
  31. --- 3662,3675 ----
  32.       while ((t = searchit(curwin, curbuf, &curwin->w_cursor, FORWARD, pat, 1L, 0,
  33.                                    RE_LAST)) != FAIL
  34.   #ifdef FEAT_COMMENTS
  35. !         && get_leader_len(ml_get_curline(), NULL, FALSE) > 0
  36.   #endif
  37.           && old_pos.lnum > curwin->w_cursor.lnum)
  38. +     {
  39. +     /* Ignore this line, continue at start of next line. */
  40.       ++curwin->w_cursor.lnum;
  41. +     curwin->w_cursor.col = 0;
  42. +     }
  43.       if (t == FAIL || old_pos.lnum <= curwin->w_cursor.lnum)
  44.       {
  45.       clearopbeep(oap);
  46. *** ../vim60.230/src/version.c    Mon Feb 18 10:46:53 2002
  47. --- src/version.c    Mon Feb 18 11:24:55 2002
  48. ***************
  49. *** 608,609 ****
  50. --- 608,611 ----
  51.   {   /* Add new patch number below this line */
  52. + /**/
  53. +     231,
  54.   /**/
  55.  
  56. -- 
  57. Mushrooms always grow in damp places and so they look like umbrellas.
  58.  
  59.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  60. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  61. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  62.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  63.