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.2 / 7.2.255 < prev    next >
Encoding:
Internet Message Format  |  2009-09-10  |  1.8 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 7.2.255
  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.2.255 (after 7.2.242)
  11. Problem:    Setting 'rightleft', 'linebreak' and 'wrap' may cause cursor to be
  12.         in wrong place.
  13. Solution:   Recompute the cursor column for these options.
  14. Files:        src/option.c
  15.  
  16.  
  17. *** ../vim-7.2.254/src/option.c    2009-07-29 15:41:32.000000000 +0200
  18. --- src/option.c    2009-09-11 13:59:55.000000000 +0200
  19. ***************
  20. *** 7430,7435 ****
  21. --- 7430,7437 ----
  22.       {
  23.       if (curwin->w_p_wrap)
  24.           curwin->w_leftcol = 0;
  25. +     if (curwin->w_curswant != MAXCOL)
  26. +         curwin->w_set_curswant = TRUE;
  27.       }
  28.   
  29.   #ifdef FEAT_WINDOWS
  30. ***************
  31. *** 7664,7669 ****
  32. --- 7666,7687 ----
  33.       }
  34.   #endif
  35.   
  36. + #ifdef FEAT_LINEBREAK
  37. +     if ((int *)varp == &curwin->w_p_lbr)
  38. +     {
  39. +     if (curwin->w_curswant != MAXCOL)
  40. +         curwin->w_set_curswant = TRUE;
  41. +     }
  42. + #endif
  43. + #ifdef FEAT_RIGHTLEFT
  44. +     if ((int *)varp == &curwin->w_p_rl)
  45. +     {
  46. +     if (curwin->w_curswant != MAXCOL)
  47. +         curwin->w_set_curswant = TRUE;
  48. +     }
  49. + #endif
  50.       /*
  51.        * End of handling side effects for bool options.
  52.        */
  53. *** ../vim-7.2.254/src/version.c    2009-09-11 15:04:13.000000000 +0200
  54. --- src/version.c    2009-09-11 15:19:40.000000000 +0200
  55. ***************
  56. *** 678,679 ****
  57. --- 678,681 ----
  58.   {   /* Add new patch number below this line */
  59. + /**/
  60. +     255,
  61.   /**/
  62.  
  63. -- 
  64. A computer without Windows is like a fish without a bicycle.
  65.  
  66.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  67. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  68. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  69.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  70.