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