|
Karsten Hopp |
0e13d9 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
0e13d9 |
Subject: Patch 7.4.630
|
|
Karsten Hopp |
0e13d9 |
Fcc: outbox
|
|
Karsten Hopp |
0e13d9 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
0e13d9 |
Mime-Version: 1.0
|
|
Karsten Hopp |
0e13d9 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
0e13d9 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
0e13d9 |
------------
|
|
Karsten Hopp |
0e13d9 |
|
|
Karsten Hopp |
0e13d9 |
Patch 7.4.630
|
|
Karsten Hopp |
0e13d9 |
Problem: When using Insert mode completion combined with autocommands the
|
|
Karsten Hopp |
0e13d9 |
redo command may not work.
|
|
Karsten Hopp |
0e13d9 |
Solution: Do not save the redo buffer when executing autocommands. (Yasuhiro
|
|
Karsten Hopp |
0e13d9 |
Matsumoto)
|
|
Karsten Hopp |
0e13d9 |
Files: src/fileio.c
|
|
Karsten Hopp |
0e13d9 |
|
|
Karsten Hopp |
0e13d9 |
|
|
Karsten Hopp |
0e13d9 |
*** ../vim-7.4.629/src/fileio.c 2015-01-07 14:43:35.728900384 +0100
|
|
Karsten Hopp |
0e13d9 |
--- src/fileio.c 2015-02-17 10:49:42.478013159 +0100
|
|
Karsten Hopp |
0e13d9 |
***************
|
|
Karsten Hopp |
0e13d9 |
*** 9230,9235 ****
|
|
Karsten Hopp |
0e13d9 |
--- 9230,9236 ----
|
|
Karsten Hopp |
0e13d9 |
#ifdef FEAT_PROFILE
|
|
Karsten Hopp |
0e13d9 |
proftime_T wait_time;
|
|
Karsten Hopp |
0e13d9 |
#endif
|
|
Karsten Hopp |
0e13d9 |
+ int did_save_redobuff = FALSE;
|
|
Karsten Hopp |
0e13d9 |
|
|
Karsten Hopp |
0e13d9 |
/*
|
|
Karsten Hopp |
0e13d9 |
* Quickly return if there are no autocommands for this event or
|
|
Karsten Hopp |
0e13d9 |
***************
|
|
Karsten Hopp |
0e13d9 |
*** 9430,9436 ****
|
|
Karsten Hopp |
0e13d9 |
if (!autocmd_busy)
|
|
Karsten Hopp |
0e13d9 |
{
|
|
Karsten Hopp |
0e13d9 |
save_search_patterns();
|
|
Karsten Hopp |
0e13d9 |
! saveRedobuff();
|
|
Karsten Hopp |
0e13d9 |
did_filetype = keep_filetype;
|
|
Karsten Hopp |
0e13d9 |
}
|
|
Karsten Hopp |
0e13d9 |
|
|
Karsten Hopp |
0e13d9 |
--- 9431,9441 ----
|
|
Karsten Hopp |
0e13d9 |
if (!autocmd_busy)
|
|
Karsten Hopp |
0e13d9 |
{
|
|
Karsten Hopp |
0e13d9 |
save_search_patterns();
|
|
Karsten Hopp |
0e13d9 |
! if (!ins_compl_active())
|
|
Karsten Hopp |
0e13d9 |
! {
|
|
Karsten Hopp |
0e13d9 |
! saveRedobuff();
|
|
Karsten Hopp |
0e13d9 |
! did_save_redobuff = TRUE;
|
|
Karsten Hopp |
0e13d9 |
! }
|
|
Karsten Hopp |
0e13d9 |
did_filetype = keep_filetype;
|
|
Karsten Hopp |
0e13d9 |
}
|
|
Karsten Hopp |
0e13d9 |
|
|
Karsten Hopp |
0e13d9 |
***************
|
|
Karsten Hopp |
0e13d9 |
*** 9530,9536 ****
|
|
Karsten Hopp |
0e13d9 |
if (!autocmd_busy)
|
|
Karsten Hopp |
0e13d9 |
{
|
|
Karsten Hopp |
0e13d9 |
restore_search_patterns();
|
|
Karsten Hopp |
0e13d9 |
! restoreRedobuff();
|
|
Karsten Hopp |
0e13d9 |
did_filetype = FALSE;
|
|
Karsten Hopp |
0e13d9 |
while (au_pending_free_buf != NULL)
|
|
Karsten Hopp |
0e13d9 |
{
|
|
Karsten Hopp |
0e13d9 |
--- 9535,9542 ----
|
|
Karsten Hopp |
0e13d9 |
if (!autocmd_busy)
|
|
Karsten Hopp |
0e13d9 |
{
|
|
Karsten Hopp |
0e13d9 |
restore_search_patterns();
|
|
Karsten Hopp |
0e13d9 |
! if (did_save_redobuff)
|
|
Karsten Hopp |
0e13d9 |
! restoreRedobuff();
|
|
Karsten Hopp |
0e13d9 |
did_filetype = FALSE;
|
|
Karsten Hopp |
0e13d9 |
while (au_pending_free_buf != NULL)
|
|
Karsten Hopp |
0e13d9 |
{
|
|
Karsten Hopp |
0e13d9 |
*** ../vim-7.4.629/src/version.c 2015-02-10 20:03:39.389939274 +0100
|
|
Karsten Hopp |
0e13d9 |
--- src/version.c 2015-02-17 10:53:04.719391852 +0100
|
|
Karsten Hopp |
0e13d9 |
***************
|
|
Karsten Hopp |
0e13d9 |
*** 743,744 ****
|
|
Karsten Hopp |
0e13d9 |
--- 743,746 ----
|
|
Karsten Hopp |
0e13d9 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
0e13d9 |
+ /**/
|
|
Karsten Hopp |
0e13d9 |
+ 630,
|
|
Karsten Hopp |
0e13d9 |
/**/
|
|
Karsten Hopp |
0e13d9 |
|
|
Karsten Hopp |
0e13d9 |
--
|
|
Karsten Hopp |
0e13d9 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
0e13d9 |
237. You tattoo your email address on your forehead.
|
|
Karsten Hopp |
0e13d9 |
|
|
Karsten Hopp |
0e13d9 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
0e13d9 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
0e13d9 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
0e13d9 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|