Jacob Niehus wrote:

> This patch fixes the problem I described here: 
> https://groups.google.com/forum/#!topic/vim_dev/8bXZRbsj5Tc
> 
> When a character is found after <Esc> is pressed in insert mode, the buffer 
> length is incremented, but the typebuf.tb_noremap flag isn't set, so it uses 
> whatever was in there already. That's why the problem was intermittent. 
> Disabling that special case 'if' statement worked because it removed the call 
> to incar(). Setting notimeout and nottimeout worked because it specifically 
> checks for that in the 'if' statement.
> 
> This also fixes other key codes in insert mode. I had disabled the vitality 
> plugin (which makes focus autocommands work in a terminal) when running 
> Cygwin because half the time it would insert literally <F24> or <F25> instead 
> of doing the mapping (vitality maps to those keys as hooks for the 
> autocommands). It turns out that was caused by the same bug.
> 
> Very simple fix, but it was really challenging to find the cause.

Great, thanks for solving this problem.


-- 
Shaw's Principle: Build a system that even a fool can use, and
only a fool will want to use it.

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