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.158 < prev    next >
Encoding:
Internet Message Format  |  2002-08-17  |  2.1 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.158
  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.158
  11. Problem:    "zs" and "ze" don't work correctly with ":set nowrap siso=1".
  12.         (Preben Guldberg)
  13. Solution:   Take 'siso' into account when computing the horizontal scroll
  14.         position for "zs" and "ze".
  15. Files:        src/normal.c
  16.  
  17.  
  18. *** ../vim61.157/src/normal.c    Thu Aug  1 20:47:28 2002
  19. --- src/normal.c    Sun Aug 18 17:13:00 2002
  20. ***************
  21. *** 4162,4167 ****
  22. --- 4162,4171 ----
  23.               else
  24.   #endif
  25.               getvcol(curwin, &curwin->w_cursor, &col, NULL, NULL);
  26. +             if (col > p_siso)
  27. +             col -= p_siso;
  28. +             else
  29. +             col = 0;
  30.               if (curwin->w_leftcol != col)
  31.               {
  32.               curwin->w_leftcol = col;
  33. ***************
  34. *** 4180,4189 ****
  35.   #endif
  36.               getvcol(curwin, &curwin->w_cursor, NULL, NULL, &col);
  37.               n = W_WIDTH(curwin) - curwin_col_off();
  38. !             if ((long)col < n)
  39.               col = 0;
  40.               else
  41. !             col = col - n + 1;
  42.               if (curwin->w_leftcol != col)
  43.               {
  44.               curwin->w_leftcol = col;
  45. --- 4184,4193 ----
  46.   #endif
  47.               getvcol(curwin, &curwin->w_cursor, NULL, NULL, &col);
  48.               n = W_WIDTH(curwin) - curwin_col_off();
  49. !             if ((long)col + p_siso < n)
  50.               col = 0;
  51.               else
  52. !             col = col + p_siso - n + 1;
  53.               if (curwin->w_leftcol != col)
  54.               {
  55.               curwin->w_leftcol = col;
  56. *** ../vim61.157/src/version.c    Sun Aug 18 16:42:19 2002
  57. --- src/version.c    Sun Aug 18 17:17:13 2002
  58. ***************
  59. *** 608,609 ****
  60. --- 608,611 ----
  61.   {   /* Add new patch number below this line */
  62. + /**/
  63. +     158,
  64.   /**/
  65.  
  66. -- 
  67. hundred-and-one symptoms of being an internet addict:
  68. 232. You start conversations with, "Have you gotten an ISDN line?"
  69.  
  70.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  71. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  72. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  73.  \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
  74.