This placement probably makes more sense (supersedes the prior patch), but the
ternaries are getting really ugly.
Not sure what I was referring to in the first post (p_pvh didn't seem to be
used in prepare_tagpreview). There's somewhere though that checks that a new
window isn't taller than p_pvh (which is how I knew the variable name was
p_pvh).
---
src/ex_cmds.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index d53652f..7119d0d 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -5464,7 +5464,7 @@ prepare_tagpreview(undo_sync)
/*
* There is no preview window open yet. Create one.
*/
- if (win_split(g_do_tagpreview > 0 ? g_do_tagpreview : 0, 0)
+ if (win_split(g_do_tagpreview > 0 ? (p_pvh && p_pvh <
g_do_tagpreview) ? p_pvh : g_do_tagpreview : 0, 0)
== FAIL)
return FALSE;
curwin->w_p_pvw = TRUE;
--
1.7.1
--
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