mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:7.4.1742
Problem: strgetchar() does not work correctly.
Solution: use mb_cptr2len(). Add a test. (Naruhiko Nishino)
5d18e0eca5
This commit is contained in:
parent
9e5dca8490
commit
b5dfdf0669
@ -15640,7 +15640,7 @@ static void f_strgetchar(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
charidx--;
|
charidx--;
|
||||||
byteidx += mb_char2len(str[byteidx]);
|
byteidx += mb_cptr2len(str + byteidx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -701,7 +701,7 @@ static int included_patches[] = {
|
|||||||
// 1745 NA
|
// 1745 NA
|
||||||
// 1744 NA
|
// 1744 NA
|
||||||
// 1743 NA
|
// 1743 NA
|
||||||
// 1742,
|
1742,
|
||||||
1741,
|
1741,
|
||||||
1740,
|
1740,
|
||||||
// 1739,
|
// 1739,
|
||||||
|
Loading…
Reference in New Issue
Block a user