forked from aniani/vim
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,8 +1907,7 @@ vim_str2nr(
|
||||
pre = 0; /* can't be octal */
|
||||
break;
|
||||
}
|
||||
if (ptr[n] >= '0')
|
||||
pre = '0'; /* assume octal */
|
||||
pre = '0'; /* assume octal */
|
||||
if (n == maxlen)
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user