mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 03:08:27 +00:00
vim-patch:8.1.2120: some MB_ macros are more complicated than necessary
Problem: Some MB_ macros are more complicated than necessary. (Dominique
Pelle)
Solution: Simplify the macros. Expand inline.
1614a14901
This commit is contained in:
@@ -2994,7 +2994,7 @@ win_line (
|
||||
if (shl->startcol != MAXCOL
|
||||
&& v >= (long)shl->startcol
|
||||
&& v < (long)shl->endcol) {
|
||||
int tmp_col = v + MB_PTR2LEN(ptr);
|
||||
int tmp_col = v + utfc_ptr2len(ptr);
|
||||
|
||||
if (shl->endcol < tmp_col) {
|
||||
shl->endcol = tmp_col;
|
||||
|
Reference in New Issue
Block a user