Hi Bram and developers,

How to reproduce:
- Change directory to your local vim/src directory.
  $ cd /path-to-your-vim-clone-dir/vim/src
- Start vanilla Vim.
  $ ./vim -Nu NONE
- Do tagjump and display in the preview window. (In fact, it becomes selected 
wait because candidates are two)
  :ptjump cmdmod
- Cancel the selection.
  <Esc>
- Display the help.
  :help

Expected behavior:
- Open the help window and display the help document.

Actual behavior:
- Two windows opened.
  Top window is preview window, and displayed the help document.
  Next one is empty window.


An attached patch fix this.
Sorry for without a test.
Tell me if there is an easy way to test in the Vim script.

--
Best regards,
Hirohito Higashi (a.k.a. h_east)

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/tag.c b/src/tag.c
index e388a43..a198a31 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -1078,6 +1078,9 @@ end_do_tag:
 	curwin->w_tagstackidx = tagstackidx;
 #ifdef FEAT_WINDOWS
     postponed_split = 0;	/* don't split next time */
+# ifdef FEAT_QUICKFIX
+    g_do_tagpreview = 0;	/* don't preview next time */
+# endif
 #endif
 
 #ifdef FEAT_CSCOPE

Raspunde prin e-mail lui