Problem: When a startup script creates a preview window, it probably
becomes the current window.
Solution: Make another window the current one. (Christian Brabandt)
# ifdef FEAT_AUTOCMD
--autocmd_no_enter;
# endif
- win_enter(firstwin, FALSE); /* back to first window */
+#if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX)
+ /*
+ * Avoid making a preview window the current window.
+ */
+ if (firstwin->w_p_pvw)
+ {
+ win_T *win;
+
+ for (win = firstwin; win != NULL; win = win->w_next)
+ if (!win->w_p_pvw)
+ {
+ firstwin = win;
+ break;
+ }
+ }
+#endif
+ /* make the first window the current window */
+ win_enter(firstwin, FALSE);
+
# ifdef FEAT_AUTOCMD
--autocmd_no_leave;
# endif
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1201,
/**/
1200,
/**/