File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -568,7 +568,11 @@ pum_set_selected(n, repeat)
568
568
if (p_pvh > 0 && p_pvh < g_do_tagpreview )
569
569
g_do_tagpreview = p_pvh ;
570
570
++ RedrawingDisabled ;
571
+ /* Prevent undo sync here, if an autocommand syncs undo weird
572
+ * things can happen to the undo tree. */
573
+ ++ no_u_sync ;
571
574
resized = prepare_tagpreview (FALSE);
575
+ -- no_u_sync ;
572
576
-- RedrawingDisabled ;
573
577
g_do_tagpreview = 0 ;
574
578
@@ -659,7 +663,9 @@ pum_set_selected(n, repeat)
659
663
* redraw. */
660
664
if (resized )
661
665
{
666
+ ++ no_u_sync ;
662
667
win_enter (curwin_save , TRUE);
668
+ -- no_u_sync ;
663
669
update_topline ();
664
670
}
665
671
@@ -670,7 +676,11 @@ pum_set_selected(n, repeat)
670
676
pum_do_redraw = FALSE;
671
677
672
678
if (!resized && win_valid (curwin_save ))
679
+ {
680
+ ++ no_u_sync ;
673
681
win_enter (curwin_save , TRUE);
682
+ -- no_u_sync ;
683
+ }
674
684
675
685
/* May need to update the screen again when there are
676
686
* autocommands involved. */
Original file line number Diff line number Diff line change @@ -741,6 +741,8 @@ static char *(features[]) =
741
741
742
742
static int included_patches [] =
743
743
{ /* Add new patch number below this line */
744
+ /**/
745
+ 901 ,
744
746
/**/
745
747
900 ,
746
748
/**/
You can’t perform that action at this time.
0 commit comments