jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.418

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