Christian Brabandt wrote:

> On Sa, 22 Apr 2017, Bram Moolenaar wrote:
> 
> > Patch 8.0.0578
> > Problem:    :simalt on MS-Windows does not work properly.
> > Solution:   Put something in the typeahead buffer. (Christian Brabandt)
> > Files:      src/gui_w32.c
> 
> It looks like this patch does not fix the problem. I am not sure why 
> this happens, If I put other keys into the typeahead buffer it works 
> correctly, don't know why K_IGNORE does not work.
> 
> How about this patch instead:
> diff --git a/src/gui_w32.c b/src/gui_w32.c
> index 52db8f4a3..62163d880 100644
> --- a/src/gui_w32.c
> +++ b/src/gui_w32.c
> @@ -2646,7 +2646,7 @@ ex_simalt(exarg_T *eap)
>          * processed. */
>         key_name[0] = K_SPECIAL;
>         key_name[1] = KS_EXTRA;
> -       key_name[2] = KE_IGNORE;
> +       key_name[2] = KE_NOP;
>         key_name[3] = NUL;
>         typebuf_was_filled = TRUE;
>         (void)ins_typebuf(key_name, REMAP_NONE, 0, TRUE, FALSE);
> 
> 
> I did create a new installer here: 
> https://ci.appveyor.com/project/chrisbra/vim-win32-installer-33v6e and 
> that release works for me.  Everybody please check.

Thanks.  the IGNORE is handled at a slightly lower level, it probably
avoids the loop where the message is handled.


-- 
If cars evolved at the same rate as computers have, they'd cost five euro, 
run for a year on a couple of liters of petrol, and explode once a day.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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