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