mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
vim-patch:7.4.374
Problem: Character after "fb" command not mapped if it might be a composing character. Solution: Don't disable mapping when looking for a composing character. (Jacob Niehus) https://code.google.com/p/vim/source/detail?r=v7-4-374
This commit is contained in:
@@ -845,7 +845,10 @@ getcount:
|
||||
|
||||
/* When getting a text character and the next character is a
|
||||
* multi-byte character, it could be a composing character.
|
||||
* However, don't wait for it to arrive. */
|
||||
* However, don't wait for it to arrive. Also, do enable mapping,
|
||||
* because if it's put back with vungetc() it's too late to apply
|
||||
* mapping. */
|
||||
no_mapping--;
|
||||
while (enc_utf8 && lang && (c = vpeekc()) > 0
|
||||
&& (c >= 0x100 || MB_BYTE2LEN(vpeekc()) > 1)) {
|
||||
c = plain_vgetc();
|
||||
@@ -857,6 +860,7 @@ getcount:
|
||||
else
|
||||
ca.ncharC2 = c;
|
||||
}
|
||||
no_mapping++;
|
||||
}
|
||||
--no_mapping;
|
||||
--allow_keys;
|
||||
|
@@ -221,7 +221,7 @@ static int included_patches[] = {
|
||||
377,
|
||||
376,
|
||||
//375,
|
||||
//374,
|
||||
374,
|
||||
373,
|
||||
372,
|
||||
371,
|
||||
|
Reference in New Issue
Block a user