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.225 < prev    next >
Encoding:
Internet Message Format  |  2002-02-15  |  2.5 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.225
  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.225
  11. Problem:    In Visual mode "gk" gets stuck in a closed fold. (Srinath
  12.         Avadhanula)
  13. Solution:   Behave differently in a closed fold.
  14. Files:        src/normal.c
  15.  
  16.  
  17. *** ../vim60.224/src/normal.c    Thu Feb  7 12:49:18 2002
  18. --- src/normal.c    Sat Feb 16 22:43:41 2002
  19. ***************
  20. *** 6699,6706 ****
  21.        */
  22.       case 'j':
  23.       case K_DOWN:
  24. !     /* with 'nowrap' it works just like the normal "j" command */
  25. !     if (!curwin->w_p_wrap)
  26.       {
  27.           oap->motion_type = MLINE;
  28.           i = cursor_down(cap->count1, oap->op_type == OP_NOP);
  29. --- 6699,6711 ----
  30.        */
  31.       case 'j':
  32.       case K_DOWN:
  33. !     /* with 'nowrap' it works just like the normal "j" command; also when
  34. !      * in a closed fold */
  35. !     if (!curwin->w_p_wrap
  36. ! #ifdef FEAT_FOLDING
  37. !         || hasFolding(curwin->w_cursor.lnum, NULL, NULL)
  38. ! #endif
  39. !         )
  40.       {
  41.           oap->motion_type = MLINE;
  42.           i = cursor_down(cap->count1, oap->op_type == OP_NOP);
  43. ***************
  44. *** 6713,6720 ****
  45.   
  46.       case 'k':
  47.       case K_UP:
  48. !     /* with 'nowrap' it works just like the normal "k" command */
  49. !     if (!curwin->w_p_wrap)
  50.       {
  51.           oap->motion_type = MLINE;
  52.           i = cursor_up(cap->count1, oap->op_type == OP_NOP);
  53. --- 6718,6730 ----
  54.   
  55.       case 'k':
  56.       case K_UP:
  57. !     /* with 'nowrap' it works just like the normal "k" command; also when
  58. !      * in a closed fold */
  59. !     if (!curwin->w_p_wrap
  60. ! #ifdef FEAT_FOLDING
  61. !         || hasFolding(curwin->w_cursor.lnum, NULL, NULL)
  62. ! #endif
  63. !        )
  64.       {
  65.           oap->motion_type = MLINE;
  66.           i = cursor_up(cap->count1, oap->op_type == OP_NOP);
  67. *** ../vim60.224/src/version.c    Sat Feb 16 13:15:21 2002
  68. --- src/version.c    Sat Feb 16 15:48:37 2002
  69. ***************
  70. *** 608,609 ****
  71. --- 608,611 ----
  72.   {   /* Add new patch number below this line */
  73. + /**/
  74. +     225,
  75.   /**/
  76.  
  77. -- 
  78. A law to reduce crime states: "It is mandatory for a motorist with criminal
  79. intentions to stop at the city limits and telephone the chief of police as he
  80. is entering the town.
  81.         [real standing law in Washington, United States of America]
  82.  
  83.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  84. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  85. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  86.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  87.