summaryrefslogtreecommitdiff
path: root/src/popupmnu.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-03-28 21:08:56 +0000
committerBram Moolenaar <Bram@vim.org>2006-03-28 21:08:56 +0000
commitd2cec5b043361ee798a0522244135f4ea87838f6 (patch)
tree3ad43aed8a8c373f85a2a3adf286b045c14f6cfe /src/popupmnu.c
parent607a95ed81973faab2e1c3d9c91822082694fdc3 (diff)
downloadvim-git-d2cec5b043361ee798a0522244135f4ea87838f6.tar.gz
updated for version 7.0c02v7.0c02
Diffstat (limited to 'src/popupmnu.c')
-rw-r--r--src/popupmnu.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/popupmnu.c b/src/popupmnu.c
index 861e74cee..9f1fae4fb 100644
--- a/src/popupmnu.c
+++ b/src/popupmnu.c
@@ -401,8 +401,11 @@ pum_set_selected(n)
}
#if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX)
- /* Show extra info in the preview window if there is something and
- * 'completeopt' contains "preview". */
+ /*
+ * Show extra info in the preview window if there is something and
+ * 'completeopt' contains "preview".
+ * NOTE: Be very careful not to sync undo!
+ */
if (pum_array[pum_selected].pum_info != NULL
&& vim_strchr(p_cot, 'p') != NULL)
{
@@ -411,7 +414,7 @@ pum_set_selected(n)
/* Open a preview window. 3 lines by default. */
g_do_tagpreview = 3;
- resized = prepare_tagpreview();
+ resized = prepare_tagpreview(FALSE);
g_do_tagpreview = 0;
if (curwin->w_p_pvw)
@@ -496,7 +499,7 @@ pum_set_selected(n)
update_screen(0);
pum_do_redraw = FALSE;
- if (win_valid(curwin_save))
+ if (!resized && win_valid(curwin_save))
win_enter(curwin_save, TRUE);
/* May need to update the screen again when there are