Hi Bram!

On Fr, 12 Jun 2015, Bram Moolenaar wrote:

> The whole typeahead handling is getting more and more complicated.  I
> have been wondering if the whole typebuf could be refactored.  It's
> tricky because when getting the next character one may be in Insert
> mode, and the next call it may be in Normal mode, thus different
> mappings and langmap apply.  One can't just change the buffer to apply
> langmap before matching with a mapping.

I have often thought about refactoring certain parts. However I always 
think, it's not worth the effort, since I fear the risk and it seems 
like it's not worth the trouble, since you are already overloaded with 
patches.

> For some things it may help to make it a list of characters instead of
> bytes.  However, mappings may work on bytes, not characters.

Why can't we make sure, that mappings only work on characters? Is this 
because of <sid> and <plug> things?

Best,
Christian
-- 
Die besten Dinge verdanken wir dem Zufall.
                -- Giacomo Girolamo Casanova

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