Bram,
when vim starts up, and some plugin opens the preview window, the cursor
will move to the preview window and not stay in the other window.
This can be seen here:
vim -u NONE -N --cmd 'pedit ~/.vimrc' foobar
Note, that the cursor is in the window with your $VIMRC and not in the
other one. I found this unexpected, so here is a patch, that fixes it.
regards,
Christian
--
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
diff --git a/src/main.c b/src/main.c
--- a/src/main.c
+++ b/src/main.c
@@ -2636,7 +2636,10 @@
if (parmp->window_layout == WIN_TABS)
goto_tabpage(1);
else
- curwin = firstwin;
+#if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX)
+ if (!firstwin->w_p_pvw && firstin->w_next != NULL)
+#endif
+ curwin = firstwin;
}
else if (parmp->window_layout == WIN_TABS)
{
@@ -2705,7 +2708,10 @@
if (parmp->window_layout == WIN_TABS)
goto_tabpage(1);
else
- curwin = firstwin;
+#if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX)
+ if (!firstwin->w_p_pvw && firstin->w_next != NULL)
+#endif
+ curwin = firstwin;
curbuf = curwin->w_buffer;
#endif
#ifdef FEAT_AUTOCMD
@@ -2816,7 +2822,12 @@
# ifdef FEAT_AUTOCMD
--autocmd_no_enter;
# endif
- win_enter(firstwin, FALSE); /* back to first window */
+#if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX)
+ if (!firstwin->w_p_pvw && firstwin->w_next != NULL)
+ win_enter(firstwin->w_next, FALSE); /* back to first window, if it is no preview window */
+#else
+ win_enter(firstwin, FALSE); /* back to first window */
+#endif
# ifdef FEAT_AUTOCMD
--autocmd_no_leave;
# endif