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 */
|
||||
break;
|
||||
}
|
||||
if (ptr[n] >= '0')
|
||||
pre = '0'; /* assume octal */
|
||||
if (n == maxlen)
|
||||
break;
|
||||
|
@@ -761,6 +761,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1229,
|
||||
/**/
|
||||
1228,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user