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.2.440 < prev    next >
Encoding:
Internet Message Format  |  2004-04-03  |  3.4 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.2.440
  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.2.440
  11. Problem:    When 'lazyredraw' is set the window title is still updated.
  12.         The size of the Visual area and the ruler are displayed too often.
  13. Solution:   Postpone redrawing the window title.  Only show the Visual area
  14.         size when waiting for a character.  Don't draw the ruler
  15.         unnecessary.
  16. Files:        src/buffer.c, src/normal.c, src/screen.c
  17.  
  18.  
  19. *** ../vim-6.2.439/src/buffer.c    Tue Mar 30 22:17:27 2004
  20. --- src/buffer.c    Wed Mar 31 20:48:00 2004
  21. ***************
  22. *** 2825,2830 ****
  23. --- 2825,2837 ----
  24.       char_u    buf[IOSIZE];
  25.       int        off;
  26.   
  27. +     if (!redrawing())
  28. +     {
  29. +     /* Postpone updating the title when 'lazyredraw' is set. */
  30. +     need_maketitle = TRUE;
  31. +     return;
  32. +     }
  33.       need_maketitle = FALSE;
  34.       if (!p_title && !p_icon)
  35.       return;
  36. *** ../vim-6.2.439/src/normal.c    Fri Mar 26 22:02:11 2004
  37. --- src/normal.c    Wed Mar 31 20:58:02 2004
  38. ***************
  39. *** 3468,3474 ****
  40.       return;
  41.   
  42.   #ifdef FEAT_VISUAL
  43. !     if (VIsual_active)
  44.       {
  45.       int        i = lt(VIsual, curwin->w_cursor);
  46.       long        lines;
  47. --- 3468,3474 ----
  48.       return;
  49.   
  50.   #ifdef FEAT_VISUAL
  51. !     if (VIsual_active && !char_avail())
  52.       {
  53.       int        i = lt(VIsual, curwin->w_cursor);
  54.       long        lines;
  55. ***************
  56. *** 3614,3619 ****
  57. --- 3614,3623 ----
  58.       display_showcmd();
  59.   }
  60.   
  61. + /*
  62. +  * push_showcmd() and pop_showcmd() are used when waiting for the user to type
  63. +  * something and there is a partial mapping.
  64. +  */
  65.       void
  66.   push_showcmd()
  67.   {
  68. ***************
  69. *** 7666,7672 ****
  70.       else
  71.       curwin->w_curswant = 0;
  72.       /* keep curswant at the column where we wanted to go, not where
  73. !        we ended; differs is line is too short */
  74.       curwin->w_set_curswant = FALSE;
  75.   }
  76.   
  77. --- 7673,7679 ----
  78.       else
  79.       curwin->w_curswant = 0;
  80.       /* keep curswant at the column where we wanted to go, not where
  81. !        we ended; differs if line is too short */
  82.       curwin->w_set_curswant = FALSE;
  83.   }
  84.   
  85. *** ../vim-6.2.439/src/screen.c    Fri Apr  2 22:28:38 2004
  86. --- src/screen.c    Fri Apr  2 22:16:45 2004
  87. ***************
  88. *** 8046,8054 ****
  89.   
  90.       /* If the last window has no status line, the ruler is after the mode
  91.        * message and must be redrawn */
  92.   # ifdef FEAT_WINDOWS
  93. !     if (lastwin->w_status_height == 0)
  94.   # endif
  95.       win_redr_ruler(lastwin, TRUE);
  96.   #endif
  97.       redraw_cmdline = FALSE;
  98. --- 8052,8062 ----
  99.   
  100.       /* If the last window has no status line, the ruler is after the mode
  101.        * message and must be redrawn */
  102. +     if (redrawing()
  103.   # ifdef FEAT_WINDOWS
  104. !         && lastwin->w_status_height == 0
  105.   # endif
  106. +        )
  107.       win_redr_ruler(lastwin, TRUE);
  108.   #endif
  109.       redraw_cmdline = FALSE;
  110. *** ../vim-6.2.439/src/version.c    Sun Apr  4 12:03:03 2004
  111. --- src/version.c    Sun Apr  4 12:05:15 2004
  112. ***************
  113. *** 639,640 ****
  114. --- 639,642 ----
  115.   {   /* Add new patch number below this line */
  116. + /**/
  117. +     440,
  118.   /**/
  119.  
  120. -- 
  121. hundred-and-one symptoms of being an internet addict:
  122. 260. Co-workers have to E-mail you about the fire alarm to get
  123.      you out of the building.
  124.  
  125.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  126. ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  127. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  128.  \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
  129.