mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
vim-patch:7.4.1697
Problem: Display problems when the 'ambiwidth' and 'emoji' options are not
set properly or the terminal doesn't behave as expected.
Solution: After drawing an ambiguous width character always position the
cursor.
cb0700844c
This commit is contained in:
@@ -1724,12 +1724,11 @@ int utf_class(int c)
|
||||
return 2;
|
||||
}
|
||||
|
||||
/*
|
||||
* Code for Unicode case-dependent operations. Based on notes in
|
||||
* http://www.unicode.org/Public/UNIDATA/CaseFolding.txt
|
||||
* This code uses simple case folding, not full case folding.
|
||||
* Last updated for Unicode 5.2.
|
||||
*/
|
||||
int utf_ambiguous_width(int c)
|
||||
{
|
||||
return c >= 0x80 && (intable(ambiguous, ARRAY_SIZE(ambiguous), c)
|
||||
|| intable(emoji_all, ARRAY_SIZE(emoji_all), c));
|
||||
}
|
||||
|
||||
/*
|
||||
* Generic conversion function for case operations.
|
||||
|
Reference in New Issue
Block a user