patch 8.0.1229: condition in vim_str2nr() is always true
Problem: Condition in vim_str2nr() is always true. (Nikolai Pavlov)
Solution: Remove the condition. (Closes #2259)
diff --git a/src/charset.c b/src/charset.c
index 4516816..a8b704c 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -1907,8 +1907,7 @@
pre = 0; /* can't be octal */
break;
}
- if (ptr[n] >= '0')
- pre = '0'; /* assume octal */
+ pre = '0'; /* assume octal */
if (n == maxlen)
break;
}
diff --git a/src/version.c b/src/version.c
index b49c764..1da082d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -762,6 +762,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1229,
+/**/
1228,
/**/
1227,