On Mi, 01 Mär 2017, Christian Brabandt wrote:

> On Di, 28 Feb 2017, Bram Moolenaar wrote:
> > I suppose the resize callback is invoked shen checking for input, and
> > then the screen update isn't reached.  Perhaps inserting <Nop> in the
> > input queue would help?
> 
> perhaps. I tried various redraw_later()/update_screen() calls, but those 
> did not work. Any particular toy patch I could try?

I tried with this patch:
diff --git a/src/gui_w32.c b/src/gui_w32.c
index fc566abee..9aac174f2 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -2637,6 +2637,7 @@ ex_simalt(exarg_T *eap)
        PostMessage(s_hwnd, WM_CHAR, (WPARAM)*keys, (LPARAM)0);
        keys++;
     }
+    server_to_input_buf((char_u *)"<C-\><C-G>");
 }

 /*

And that fixes the issue. I tried using <Nop> but that one does seem to 
be only replaced in do_map() so that would be literally translated to 
the commands <, N, o, p and threw an error message for not finding the 
last search pattern.

One might need to add some ifdefs however, don't know if 
server_to_input() is always available on Windows.

Best,
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/d/optout.

Raspunde prin e-mail lui