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.045 < prev    next >
Encoding:
Internet Message Format  |  2002-11-04  |  2.2 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.045
  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.045
  11. Problem:    In Visual mode, with lots of folds and 'scrolloff' set to 999,
  12.         moving the cursor down near the end of the file causes the text to
  13.         jump up and down. (Lubomir Host)
  14. Solution:   Take into account that the cursor may be on the last line of a
  15.         closed fold.
  16. Files:        src/move.c
  17.  
  18.  
  19. *** ../vim61.044/src/move.c    Sat Mar 16 16:41:26 2002
  20. --- src/move.c    Thu May  2 19:50:31 2002
  21. ***************
  22. *** 2078,2092 ****
  23.       lineoff_T    boff;
  24.   
  25.       loff.lnum = boff.lnum = curwin->w_cursor.lnum;
  26.   #ifdef FEAT_DIFF
  27.       used = plines_nofill(loff.lnum);
  28.       loff.fill = 0;
  29.       boff.fill = 0;
  30.   #else
  31.       used = plines(loff.lnum);
  32. - #endif
  33. - #ifdef FEAT_FOLDING
  34. -     (void)hasFolding(boff.lnum, NULL, &boff.lnum);
  35.   #endif
  36.       topline = loff.lnum;
  37.       while (topline > 1)
  38. --- 2078,2092 ----
  39.       lineoff_T    boff;
  40.   
  41.       loff.lnum = boff.lnum = curwin->w_cursor.lnum;
  42. + #ifdef FEAT_FOLDING
  43. +     (void)hasFolding(loff.lnum, &loff.lnum, &boff.lnum);
  44. + #endif
  45.   #ifdef FEAT_DIFF
  46.       used = plines_nofill(loff.lnum);
  47.       loff.fill = 0;
  48.       boff.fill = 0;
  49.   #else
  50.       used = plines(loff.lnum);
  51.   #endif
  52.       topline = loff.lnum;
  53.       while (topline > 1)
  54. *** ../vim61.044/src/version.c    Wed May  1 21:20:47 2002
  55. --- src/version.c    Thu May  2 19:48:29 2002
  56. ***************
  57. *** 608,609 ****
  58. --- 608,611 ----
  59.   {   /* Add new patch number below this line */
  60. + /**/
  61. +     45,
  62.   /**/
  63.  
  64. -- 
  65. ARTHUR:          But if he was dying, he wouldn't bother to carve
  66.                  "Aaaaarrrrrrggghhh".  He'd just say it.
  67. BROTHER MAYNARD: It's down there carved in stone.
  68. GALAHAD:         Perhaps he was dictating.
  69.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  70.  
  71.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  72. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  73. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  74.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  75.