Blame SOURCES/7.4.494

d6ba96
To: vim_dev@googlegroups.com
d6ba96
Subject: Patch 7.4.494
d6ba96
Fcc: outbox
d6ba96
From: Bram Moolenaar <Bram@moolenaar.net>
d6ba96
Mime-Version: 1.0
d6ba96
Content-Type: text/plain; charset=UTF-8
d6ba96
Content-Transfer-Encoding: 8bit
d6ba96
------------
d6ba96
d6ba96
Patch 7.4.494
d6ba96
Problem:    Cursor shape is wrong after a CompleteDone autocommand.
d6ba96
Solution:   Update the cursor and mouse shape after ":normal" restores the
d6ba96
	    state. (Jacob Niehus)
d6ba96
Files:	    src/ex_docmd.c
d6ba96
d6ba96
d6ba96
*** ../vim-7.4.493/src/ex_docmd.c	2014-10-21 20:01:54.986287762 +0200
d6ba96
--- src/ex_docmd.c	2014-11-05 09:37:05.829176795 +0100
d6ba96
***************
d6ba96
*** 9526,9533 ****
d6ba96
      msg_didout |= save_msg_didout;	/* don't reset msg_didout now */
d6ba96
  
d6ba96
      /* Restore the state (needed when called from a function executed for
d6ba96
!      * 'indentexpr'). */
d6ba96
      State = save_State;
d6ba96
  #ifdef FEAT_MBYTE
d6ba96
      vim_free(arg);
d6ba96
  #endif
d6ba96
--- 9526,9540 ----
d6ba96
      msg_didout |= save_msg_didout;	/* don't reset msg_didout now */
d6ba96
  
d6ba96
      /* Restore the state (needed when called from a function executed for
d6ba96
!      * 'indentexpr'). Update the mouse and cursor, they may have changed. */
d6ba96
      State = save_State;
d6ba96
+ #ifdef FEAT_MOUSE
d6ba96
+     setmouse();
d6ba96
+ #endif
d6ba96
+ #ifdef CURSOR_SHAPE
d6ba96
+     ui_cursor_shape();		/* may show different cursor shape */
d6ba96
+ #endif
d6ba96
+ 
d6ba96
  #ifdef FEAT_MBYTE
d6ba96
      vim_free(arg);
d6ba96
  #endif
d6ba96
*** ../vim-7.4.493/src/version.c	2014-10-31 19:51:33.014698055 +0100
d6ba96
--- src/version.c	2014-11-05 09:51:06.261156543 +0100
d6ba96
***************
d6ba96
*** 743,744 ****
d6ba96
--- 743,746 ----
d6ba96
  {   /* Add new patch number below this line */
d6ba96
+ /**/
d6ba96
+     494,
d6ba96
  /**/
d6ba96
d6ba96
-- 
d6ba96
Q:   How many hardware engineers does it take to change a lightbulb?
d6ba96
A:   None.  We'll fix it in software.
d6ba96
d6ba96
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
d6ba96
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
d6ba96
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
d6ba96
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///