Patch 7.4.2025
Problem:    The cursor blinking stops or is irregular when receiving date over
            a channel and writing it in a buffer, and when updating the status
            line. (Ramel Eshed)
Solution:   Make it a bit better by flushing GUI output.  Don't redraw the
            cursor after updating the screen if the blink state is off.
Files:      src/gui_gtk_x11.c, src/screen.c


*** ../vim-7.4.2024/src/gui_gtk_x11.c   2016-07-07 16:42:57.314788421 +0200
--- src/gui_gtk_x11.c   2016-07-10 23:12:30.519945108 +0200
***************
*** 867,873 ****
--- 867,876 ----
        blink_timer = 0;
      }
      if (blink_state == BLINK_OFF)
+     {
        gui_update_cursor(TRUE, FALSE);
+       gui_mch_flush();
+     }
      blink_state = BLINK_NONE;
  }
  
***************
*** 902,907 ****
--- 905,911 ----
                                   (GtkFunction) blink_cb, NULL);
  #endif
      }
+     gui_mch_flush();
  
      return FALSE;             /* don't happen again */
  }
***************
*** 934,939 ****
--- 938,944 ----
  #endif
        blink_state = BLINK_ON;
        gui_update_cursor(TRUE, FALSE);
+       gui_mch_flush();
      }
  }
  
*** ../vim-7.4.2024/src/screen.c        2016-07-08 22:52:31.931768492 +0200
--- src/screen.c        2016-07-10 23:12:39.259815115 +0200
***************
*** 757,763 ****
      if (gui.in_use)
      {
        out_flush();    /* required before updating the cursor */
!       if (did_one)
        {
            /* Put the GUI position where the cursor was, gui_update_cursor()
             * uses that. */
--- 757,763 ----
      if (gui.in_use)
      {
        out_flush();    /* required before updating the cursor */
!       if (did_one && !gui_mch_is_blink_off())
        {
            /* Put the GUI position where the cursor was, gui_update_cursor()
             * uses that. */
*** ../vim-7.4.2024/src/version.c       2016-07-10 22:11:11.878751222 +0200
--- src/version.c       2016-07-10 22:43:09.714140993 +0200
***************
*** 760,761 ****
--- 760,763 ----
  {   /* Add new patch number below this line */
+ /**/
+     2025,
  /**/

-- 
ARTHUR: This new learning amazes me, Sir Bedevere.  Explain again how sheep's
        bladders may be employed to prevent earthquakes.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui