|
Karsten Hopp |
8f1f53 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
8f1f53 |
Subject: Patch 7.4.716
|
|
Karsten Hopp |
8f1f53 |
Fcc: outbox
|
|
Karsten Hopp |
8f1f53 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
8f1f53 |
Mime-Version: 1.0
|
|
Karsten Hopp |
8f1f53 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
8f1f53 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
8f1f53 |
------------
|
|
Karsten Hopp |
8f1f53 |
|
|
Karsten Hopp |
8f1f53 |
Patch 7.4.716
|
|
Karsten Hopp |
8f1f53 |
Problem: When using the 'c' flag of ":substitute" and selecting "a" or "l"
|
|
Karsten Hopp |
8f1f53 |
at the prompt the flags are not remembered for ":&&". (Ingo
|
|
Karsten Hopp |
8f1f53 |
Karkat)
|
|
Karsten Hopp |
8f1f53 |
Solution: Save the flag values and restore them. (Hirohito Higashi)
|
|
Karsten Hopp |
8f1f53 |
Files: src/ex_cmds.c
|
|
Karsten Hopp |
8f1f53 |
|
|
Karsten Hopp |
8f1f53 |
|
|
Karsten Hopp |
8f1f53 |
*** ../vim-7.4.715/src/ex_cmds.c 2015-04-15 12:43:37.993444528 +0200
|
|
Karsten Hopp |
8f1f53 |
--- src/ex_cmds.c 2015-05-04 10:38:24.853616235 +0200
|
|
Karsten Hopp |
8f1f53 |
***************
|
|
Karsten Hopp |
8f1f53 |
*** 4279,4284 ****
|
|
Karsten Hopp |
8f1f53 |
--- 4279,4286 ----
|
|
Karsten Hopp |
8f1f53 |
static int do_list = FALSE; /* list last line with subs. */
|
|
Karsten Hopp |
8f1f53 |
static int do_number = FALSE; /* list last line with line nr*/
|
|
Karsten Hopp |
8f1f53 |
static int do_ic = 0; /* ignore case flag */
|
|
Karsten Hopp |
8f1f53 |
+ int save_do_all; /* remember user specified 'g' flag */
|
|
Karsten Hopp |
8f1f53 |
+ int save_do_ask; /* remember user specified 'c' flag */
|
|
Karsten Hopp |
8f1f53 |
char_u *pat = NULL, *sub = NULL; /* init for GCC */
|
|
Karsten Hopp |
8f1f53 |
int delimiter;
|
|
Karsten Hopp |
8f1f53 |
int sublen;
|
|
Karsten Hopp |
8f1f53 |
***************
|
|
Karsten Hopp |
8f1f53 |
*** 4514,4519 ****
|
|
Karsten Hopp |
8f1f53 |
--- 4516,4524 ----
|
|
Karsten Hopp |
8f1f53 |
if (do_count)
|
|
Karsten Hopp |
8f1f53 |
do_ask = FALSE;
|
|
Karsten Hopp |
8f1f53 |
|
|
Karsten Hopp |
8f1f53 |
+ save_do_all = do_all;
|
|
Karsten Hopp |
8f1f53 |
+ save_do_ask = do_ask;
|
|
Karsten Hopp |
8f1f53 |
+
|
|
Karsten Hopp |
8f1f53 |
/*
|
|
Karsten Hopp |
8f1f53 |
* check for a trailing count
|
|
Karsten Hopp |
8f1f53 |
*/
|
|
Karsten Hopp |
8f1f53 |
***************
|
|
Karsten Hopp |
8f1f53 |
*** 5327,5332 ****
|
|
Karsten Hopp |
8f1f53 |
--- 5332,5341 ----
|
|
Karsten Hopp |
8f1f53 |
#endif
|
|
Karsten Hopp |
8f1f53 |
|
|
Karsten Hopp |
8f1f53 |
vim_regfree(regmatch.regprog);
|
|
Karsten Hopp |
8f1f53 |
+
|
|
Karsten Hopp |
8f1f53 |
+ /* Restore the flag values, they can be used for ":&&". */
|
|
Karsten Hopp |
8f1f53 |
+ do_all = save_do_all;
|
|
Karsten Hopp |
8f1f53 |
+ do_ask = save_do_ask;
|
|
Karsten Hopp |
8f1f53 |
}
|
|
Karsten Hopp |
8f1f53 |
|
|
Karsten Hopp |
8f1f53 |
/*
|
|
Karsten Hopp |
8f1f53 |
*** ../vim-7.4.715/src/version.c 2015-05-04 10:33:09.633193707 +0200
|
|
Karsten Hopp |
8f1f53 |
--- src/version.c 2015-05-04 10:35:25.235654731 +0200
|
|
Karsten Hopp |
8f1f53 |
***************
|
|
Karsten Hopp |
8f1f53 |
*** 743,744 ****
|
|
Karsten Hopp |
8f1f53 |
--- 743,746 ----
|
|
Karsten Hopp |
8f1f53 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
8f1f53 |
+ /**/
|
|
Karsten Hopp |
8f1f53 |
+ 716,
|
|
Karsten Hopp |
8f1f53 |
/**/
|
|
Karsten Hopp |
8f1f53 |
|
|
Karsten Hopp |
8f1f53 |
--
|
|
Karsten Hopp |
8f1f53 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
8f1f53 |
28. You have comandeered your teenager's phone line for the net and even his
|
|
Karsten Hopp |
8f1f53 |
friends know not to call on his line anymore.
|
|
Karsten Hopp |
8f1f53 |
|
|
Karsten Hopp |
8f1f53 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
8f1f53 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
8f1f53 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
8f1f53 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|