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:
Jurica Bradaric
2016-01-24 10:28:41 +01:00
parent 4172ce4eb0
commit 7c94b2c343
2 changed files with 6 additions and 3 deletions

View File

@@ -4638,10 +4638,13 @@ static int get_string_tv(char_u **arg, typval_T *rettv, int evaluate)
int n, nr;
int c = toupper(*p);
if (c == 'X')
if (c == 'X') {
n = 2;
else
} else if (*p == 'u') {
n = 4;
} else {
n = 8;
}
nr = 0;
while (--n >= 0 && ascii_isxdigit(p[1])) {
++p;

View File

@@ -385,7 +385,7 @@ static int included_patches[] = {
// 742,
// 741,
// 740,
// 739,
739,
// 738 NA
// 737,
736,