Hi Bram,
2014/7/18(Fri) 0:34:05 UTC+9 Bram Moolenaar:
> Hirohito Higashi wrote:
>
>
>
> > Attach a patch.
>
> > Suppress preview window's status line redrawing when popupmenu opened
>
> > for completion with preview window.
>
> >
>
> > What do you think? worth to consider?
>
>
>
> Looks tricky. What if the popup menu was covering the status line
>
> before, and now reveals (part of) it?
I update a patch. Please check.
> Does the check for "resized" catch that?
It seem to redraw correctly in the existing code.
--
Best regards,
Hirohito Higashi
--
--
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/d/optout.
diff -r 827611a8802f src/popupmnu.c
--- a/src/popupmnu.c Wed Jul 23 13:50:47 2014 +0200
+++ b/src/popupmnu.c Wed Jul 23 23:41:04 2014 +0900
@@ -643,6 +643,12 @@
if (curwin != curwin_save && win_valid(curwin_save))
{
+ /* When the first completion is done and the preview
+ * window is not resized, skip the preview window's
+ * status line redrawing. */
+ if (ins_compl_active() && !resized)
+ curwin->w_redr_status = FALSE;
+
/* Return cursor to where we were */
validate_cursor();
redraw_later(SOME_VALID);