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.072 < prev    next >
Encoding:
Internet Message Format  |  2001-11-03  |  2.4 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.072
  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.072
  11. Problem:    When 'lazyredraw' is set, a mapping that stops Visual mode, moves
  12.         the cursor and starts Visual mode again causes a redraw problem.
  13.         (Brian Silverman)
  14. Solution:   Redraw both the old and the new Visual area when necessary.
  15. Files:        src/normal.c, src/screen.c
  16.  
  17.  
  18. *** ../vim60.71/src/normal.c    Sun Nov  4 13:19:04 2001
  19. --- src/normal.c    Sun Nov  4 19:03:27 2001
  20. ***************
  21. *** 6491,6499 ****
  22.       clip_star.vmode = NUL;
  23.   #endif
  24.   
  25. !     /* Only need to redraw this line. */
  26. !     curwin->w_old_cursor_lnum = curwin->w_cursor.lnum;
  27. !     curwin->w_old_visual_lnum = curwin->w_cursor.lnum;
  28.   }
  29.   
  30.   #endif /* FEAT_VISUAL */
  31. --- 6491,6503 ----
  32.       clip_star.vmode = NUL;
  33.   #endif
  34.   
  35. !     /* Only need to redraw this line, unless still need to redraw an old
  36. !      * Visual area (when 'lazyredraw' is set). */
  37. !     if (curwin->w_redr_type < INVERTED)
  38. !     {
  39. !     curwin->w_old_cursor_lnum = curwin->w_cursor.lnum;
  40. !     curwin->w_old_visual_lnum = curwin->w_cursor.lnum;
  41. !     }
  42.   }
  43.   
  44.   #endif /* FEAT_VISUAL */
  45. *** ../vim60.71/src/screen.c    Thu Nov  1 14:59:19 2001
  46. --- src/screen.c    Sun Nov  4 19:06:14 2001
  47. ***************
  48. *** 1171,1176 ****
  49. --- 1171,1180 ----
  50.               from = wp->w_old_cursor_lnum;
  51.           if (wp->w_old_cursor_lnum > to)
  52.               to = wp->w_old_cursor_lnum;
  53. +         if (wp->w_old_visual_lnum < from)
  54. +             from = wp->w_old_visual_lnum;
  55. +         if (wp->w_old_visual_lnum > to)
  56. +             to = wp->w_old_visual_lnum;
  57.           }
  58.           else
  59.           {
  60. *** ../vim60.71/src/version.c    Sun Nov  4 18:45:17 2001
  61. --- src/version.c    Sun Nov  4 19:08:13 2001
  62. ***************
  63. *** 608,609 ****
  64. --- 608,611 ----
  65.   {   /* Add new patch number below this line */
  66. + /**/
  67. +     72,
  68.   /**/
  69.  
  70. -- 
  71. For humans, honesty is a matter of degree.  Engineers are always honest in
  72. matters of technology and human relationships.  That's why it's a good idea
  73. to keep engineers away from customers, romantic interests, and other people
  74. who can't handle the thruth.
  75.                 (Scott Adams - The Dilbert principle)
  76.  
  77.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  78. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  79.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  80.