Karsten Hopp 497939
To: vim_dev@googlegroups.com
Karsten Hopp 497939
Subject: Patch 7.4.418
Karsten Hopp 497939
Fcc: outbox
Karsten Hopp 497939
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 497939
Mime-Version: 1.0
Karsten Hopp 497939
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 497939
Content-Transfer-Encoding: 8bit
Karsten Hopp 497939
------------
Karsten Hopp 497939
Karsten Hopp 497939
Patch 7.4.418
Karsten Hopp 497939
Problem:    When leaving ":append" the cursor shape is like in Insert mode.
Karsten Hopp 497939
	    (Jacob Niehus)
Karsten Hopp 497939
Solution:   Do not have State set to INSERT when calling getline().
Karsten Hopp 497939
Files:	    src/ex_cmds.c
Karsten Hopp 497939
Karsten Hopp 497939
Karsten Hopp 497939
*** ../vim-7.4.417/src/ex_cmds.c	2014-08-06 18:17:03.471147780 +0200
Karsten Hopp 497939
--- src/ex_cmds.c	2014-08-29 08:54:26.666398204 +0200
Karsten Hopp 497939
***************
Karsten Hopp 497939
*** 4011,4021 ****
Karsten Hopp 497939
--- 4011,4029 ----
Karsten Hopp 497939
  	    eap->nextcmd = p;
Karsten Hopp 497939
  	}
Karsten Hopp 497939
  	else
Karsten Hopp 497939
+ 	{
Karsten Hopp 497939
+ 	    int save_State = State;
Karsten Hopp 497939
+ 
Karsten Hopp 497939
+ 	    /* Set State to avoid the cursor shape to be set to INSERT mode
Karsten Hopp 497939
+ 	     * when getline() returns. */
Karsten Hopp 497939
+ 	    State = CMDLINE;
Karsten Hopp 497939
  	    theline = eap->getline(
Karsten Hopp 497939
  #ifdef FEAT_EVAL
Karsten Hopp 497939
  		    eap->cstack->cs_looplevel > 0 ? -1 :
Karsten Hopp 497939
  #endif
Karsten Hopp 497939
  		    NUL, eap->cookie, indent);
Karsten Hopp 497939
+ 	    State = save_State;
Karsten Hopp 497939
+ 	}
Karsten Hopp 497939
  	lines_left = Rows - 1;
Karsten Hopp 497939
  	if (theline == NULL)
Karsten Hopp 497939
  	    break;
Karsten Hopp 497939
*** ../vim-7.4.417/src/version.c	2014-08-24 21:39:45.488526954 +0200
Karsten Hopp 497939
--- src/version.c	2014-08-29 08:58:31.086398738 +0200
Karsten Hopp 497939
***************
Karsten Hopp 497939
*** 743,744 ****
Karsten Hopp 497939
--- 743,746 ----
Karsten Hopp 497939
  {   /* Add new patch number below this line */
Karsten Hopp 497939
+ /**/
Karsten Hopp 497939
+     418,
Karsten Hopp 497939
  /**/
Karsten Hopp 497939
Karsten Hopp 497939
-- 
Karsten Hopp 497939
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 497939
88. Every single time you press the 'Get mail' button...it does get new mail.
Karsten Hopp 497939
Karsten Hopp 497939
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 497939
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 497939
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 497939
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///