|
Karsten Hopp |
a20c56 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
a20c56 |
Subject: Patch 7.4.901
|
|
Karsten Hopp |
a20c56 |
Fcc: outbox
|
|
Karsten Hopp |
a20c56 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
a20c56 |
Mime-Version: 1.0
|
|
Karsten Hopp |
a20c56 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
a20c56 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
a20c56 |
------------
|
|
Karsten Hopp |
a20c56 |
|
|
Karsten Hopp |
a20c56 |
Patch 7.4.901
|
|
Karsten Hopp |
a20c56 |
Problem: When a BufLeave autocommand changes folding in a way it syncs
|
|
Karsten Hopp |
a20c56 |
undo, undo can be corrupted.
|
|
Karsten Hopp |
a20c56 |
Solution: Prevent undo sync. (Jacob Niehus)
|
|
Karsten Hopp |
a20c56 |
Files: src/popupmnu.c
|
|
Karsten Hopp |
a20c56 |
|
|
Karsten Hopp |
a20c56 |
|
|
Karsten Hopp |
a20c56 |
*** ../vim-7.4.900/src/popupmnu.c 2014-07-23 21:10:39.867766788 +0200
|
|
Karsten Hopp |
a20c56 |
--- src/popupmnu.c 2015-10-30 14:19:21.681104047 +0100
|
|
Karsten Hopp |
a20c56 |
***************
|
|
Karsten Hopp |
a20c56 |
*** 568,574 ****
|
|
Karsten Hopp |
a20c56 |
--- 568,578 ----
|
|
Karsten Hopp |
a20c56 |
if (p_pvh > 0 && p_pvh < g_do_tagpreview)
|
|
Karsten Hopp |
a20c56 |
g_do_tagpreview = p_pvh;
|
|
Karsten Hopp |
a20c56 |
++RedrawingDisabled;
|
|
Karsten Hopp |
a20c56 |
+ /* Prevent undo sync here, if an autocommand syncs undo weird
|
|
Karsten Hopp |
a20c56 |
+ * things can happen to the undo tree. */
|
|
Karsten Hopp |
a20c56 |
+ ++no_u_sync;
|
|
Karsten Hopp |
a20c56 |
resized = prepare_tagpreview(FALSE);
|
|
Karsten Hopp |
a20c56 |
+ --no_u_sync;
|
|
Karsten Hopp |
a20c56 |
--RedrawingDisabled;
|
|
Karsten Hopp |
a20c56 |
g_do_tagpreview = 0;
|
|
Karsten Hopp |
a20c56 |
|
|
Karsten Hopp |
a20c56 |
***************
|
|
Karsten Hopp |
a20c56 |
*** 659,665 ****
|
|
Karsten Hopp |
a20c56 |
--- 663,671 ----
|
|
Karsten Hopp |
a20c56 |
* redraw. */
|
|
Karsten Hopp |
a20c56 |
if (resized)
|
|
Karsten Hopp |
a20c56 |
{
|
|
Karsten Hopp |
a20c56 |
+ ++no_u_sync;
|
|
Karsten Hopp |
a20c56 |
win_enter(curwin_save, TRUE);
|
|
Karsten Hopp |
a20c56 |
+ --no_u_sync;
|
|
Karsten Hopp |
a20c56 |
update_topline();
|
|
Karsten Hopp |
a20c56 |
}
|
|
Karsten Hopp |
a20c56 |
|
|
Karsten Hopp |
a20c56 |
***************
|
|
Karsten Hopp |
a20c56 |
*** 670,676 ****
|
|
Karsten Hopp |
a20c56 |
--- 676,686 ----
|
|
Karsten Hopp |
a20c56 |
pum_do_redraw = FALSE;
|
|
Karsten Hopp |
a20c56 |
|
|
Karsten Hopp |
a20c56 |
if (!resized && win_valid(curwin_save))
|
|
Karsten Hopp |
a20c56 |
+ {
|
|
Karsten Hopp |
a20c56 |
+ ++no_u_sync;
|
|
Karsten Hopp |
a20c56 |
win_enter(curwin_save, TRUE);
|
|
Karsten Hopp |
a20c56 |
+ --no_u_sync;
|
|
Karsten Hopp |
a20c56 |
+ }
|
|
Karsten Hopp |
a20c56 |
|
|
Karsten Hopp |
a20c56 |
/* May need to update the screen again when there are
|
|
Karsten Hopp |
a20c56 |
* autocommands involved. */
|
|
Karsten Hopp |
a20c56 |
*** ../vim-7.4.900/src/version.c 2015-10-25 22:41:56.703017233 +0100
|
|
Karsten Hopp |
a20c56 |
--- src/version.c 2015-10-30 14:16:43.274962288 +0100
|
|
Karsten Hopp |
a20c56 |
***************
|
|
Karsten Hopp |
a20c56 |
*** 743,744 ****
|
|
Karsten Hopp |
a20c56 |
--- 743,746 ----
|
|
Karsten Hopp |
a20c56 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
a20c56 |
+ /**/
|
|
Karsten Hopp |
a20c56 |
+ 901,
|
|
Karsten Hopp |
a20c56 |
/**/
|
|
Karsten Hopp |
a20c56 |
|
|
Karsten Hopp |
a20c56 |
|
|
Karsten Hopp |
a20c56 |
--
|
|
Karsten Hopp |
a20c56 |
Creating the world with Emacs: M-x let-there-be-light
|
|
Karsten Hopp |
a20c56 |
Creating the world with Vim: :make world
|
|
Karsten Hopp |
a20c56 |
|
|
Karsten Hopp |
a20c56 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
a20c56 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
a20c56 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
a20c56 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|