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.3 / 7.3.137 < prev    next >
Encoding:
Internet Message Format  |  2012-11-20  |  2.8 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.137
  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.3.137 (after 7.3.091)
  11. Problem:    When 'lazyredraw' is set the screen may not be updated. (Ivan
  12.         Krasilnikov)
  13. Solution:   Call update_screen() before waiting for input.
  14. Files:        src/misc1.c, src/getchar.c
  15.  
  16.  
  17. *** ../vim-7.3.136/src/misc1.c    2011-01-22 00:11:42.000000000 +0100
  18. --- src/misc1.c    2011-03-03 14:02:02.000000000 +0100
  19. ***************
  20. *** 3115,3121 ****
  21. --- 3115,3129 ----
  22.           continue;
  23.   
  24.       if (n == KEYLEN_REMOVED)  /* key code removed */
  25. +     {
  26. +         if (must_redraw)
  27. +         {
  28. +         /* Redrawing was postponed, do it now. */
  29. +         update_screen(0);
  30. +         setcursor(); /* put cursor back where it belongs */
  31. +         }
  32.           continue;
  33. +     }
  34.       if (n > 0)        /* found a termcode: adjust length */
  35.           len = n;
  36.       if (len == 0)        /* nothing typed yet */
  37. *** ../vim-7.3.136/src/getchar.c    2010-12-30 12:30:26.000000000 +0100
  38. --- src/getchar.c    2011-03-03 14:01:26.000000000 +0100
  39. ***************
  40. *** 2710,2717 ****
  41.            * are still available.  But when those available characters
  42.            * are part of a mapping, and we are going to do a blocking
  43.            * wait here.  Need to update the screen to display the
  44. !          * changed text so far. */
  45. !         if ((State & INSERT) && advance && must_redraw != 0)
  46.           {
  47.               update_screen(0);
  48.               setcursor(); /* put cursor back where it belongs */
  49. --- 2710,2719 ----
  50.            * are still available.  But when those available characters
  51.            * are part of a mapping, and we are going to do a blocking
  52.            * wait here.  Need to update the screen to display the
  53. !          * changed text so far. Also for when 'lazyredraw' is set and
  54. !          * redrawing was postponed because there was something in the
  55. !          * input buffer (e.g., termresponse). */
  56. !         if (((State & INSERT) || p_lz) && advance && must_redraw != 0)
  57.           {
  58.               update_screen(0);
  59.               setcursor(); /* put cursor back where it belongs */
  60. *** ../vim-7.3.136/src/version.c    2011-03-03 15:01:25.000000000 +0100
  61. --- src/version.c    2011-03-03 15:02:45.000000000 +0100
  62. ***************
  63. *** 716,717 ****
  64. --- 716,719 ----
  65.   {   /* Add new patch number below this line */
  66. + /**/
  67. +     137,
  68.   /**/
  69.  
  70. -- 
  71. ARTHUR:        What?
  72. BLACK KNIGHT:  None shall pass.
  73. ARTHUR:        I have no quarrel with you, good Sir knight, but I must cross
  74.                this bridge.
  75. BLACK KNIGHT:  Then you shall die.
  76.                                   The Quest for the Holy Grail (Monty Python)
  77.  
  78.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  79. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  80. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  81.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  82.