mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 07:58:35 +00:00
vim-patch:7.4.739
Problem: In a string "\U" only takes 4 digits, while after CTRL-V U eight
digits can be used.
Solution: Make "\U" also take eight digits. (Christian Brabandt)
acc39888cd
This commit is contained in:
@@ -4638,10 +4638,13 @@ static int get_string_tv(char_u **arg, typval_T *rettv, int evaluate)
|
|||||||
int n, nr;
|
int n, nr;
|
||||||
int c = toupper(*p);
|
int c = toupper(*p);
|
||||||
|
|
||||||
if (c == 'X')
|
if (c == 'X') {
|
||||||
n = 2;
|
n = 2;
|
||||||
else
|
} else if (*p == 'u') {
|
||||||
n = 4;
|
n = 4;
|
||||||
|
} else {
|
||||||
|
n = 8;
|
||||||
|
}
|
||||||
nr = 0;
|
nr = 0;
|
||||||
while (--n >= 0 && ascii_isxdigit(p[1])) {
|
while (--n >= 0 && ascii_isxdigit(p[1])) {
|
||||||
++p;
|
++p;
|
||||||
|
@@ -385,7 +385,7 @@ static int included_patches[] = {
|
|||||||
// 742,
|
// 742,
|
||||||
// 741,
|
// 741,
|
||||||
// 740,
|
// 740,
|
||||||
// 739,
|
739,
|
||||||
// 738 NA
|
// 738 NA
|
||||||
// 737,
|
// 737,
|
||||||
736,
|
736,
|
||||||
|
Reference in New Issue
Block a user