mirror of
https://github.com/vim/vim.git
synced 2025-10-18 07:54:29 -04:00
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)
This commit is contained in:
@@ -1907,7 +1907,6 @@ vim_str2nr(
|
|||||||
pre = 0; /* can't be octal */
|
pre = 0; /* can't be octal */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (ptr[n] >= '0')
|
|
||||||
pre = '0'; /* assume octal */
|
pre = '0'; /* assume octal */
|
||||||
if (n == maxlen)
|
if (n == maxlen)
|
||||||
break;
|
break;
|
||||||
|
@@ -761,6 +761,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1229,
|
||||||
/**/
|
/**/
|
||||||
1228,
|
1228,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user