File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -795,6 +795,10 @@ pum_set_selected(int n, int repeat UNUSED)
795795 use_popup = USEPOPUP_NORMAL ;
796796 else
797797 use_popup = USEPOPUP_NONE ;
798+ if (use_popup != USEPOPUP_NONE )
799+ // don't use WinEnter or WinLeave autocommands for the info
800+ // popup
801+ block_autocmds ();
798802# endif
799803 // Open a preview window and set "curwin" to it.
800804 // 3 lines by default, prefer 'previewheight' if set and smaller.
@@ -972,6 +976,10 @@ pum_set_selected(int n, int repeat UNUSED)
972976 if (WIN_IS_POPUP (curwin ))
973977 // can't keep focus in a popup window
974978 win_enter (firstwin , TRUE);
979+ # endif
980+ # ifdef FEAT_PROP_POPUP
981+ if (use_popup != USEPOPUP_NONE )
982+ unblock_autocmds ();
975983# endif
976984 }
977985#endif
Original file line number Diff line number Diff line change @@ -3243,6 +3243,10 @@ func Get_popupmenu_lines()
32433243 call popup_show (id)
32443244 endif
32453245 endfunc
3246+
3247+ " Check that no autocommands are triggered for the info popup
3248+ au WinEnter * if win_gettype () == ' popup' | call setline (2 , ' WinEnter' ) | endif
3249+ au WinLeave * if win_gettype () == ' popup' | call setline (2 , ' WinLeave' ) | endif
32463250 END
32473251 return lines
32483252endfunc
Original file line number Diff line number Diff line change @@ -750,6 +750,8 @@ static char *(features[]) =
750750
751751static int included_patches [] =
752752{ /* Add new patch number below this line */
753+ /**/
754+ 1989 ,
753755/**/
754756 1988 ,
755757/**/
You can’t perform that action at this time.
0 commit comments