ex_getln: fix pvs/v781

This commit is contained in:
Jan Edmund Lazo 2019-12-25 18:32:29 -05:00
parent 23dbe73585
commit 251177b63b
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -3575,7 +3575,7 @@ static int ccheck_abbr(int c)
// Do not consider '<,'> be part of the mapping, skip leading whitespace.
// Actually accepts any mark.
while (ascii_iswhite(ccline.cmdbuff[spos]) && spos < ccline.cmdlen) {
while (spos < ccline.cmdlen && ascii_iswhite(ccline.cmdbuff[spos])) {
spos++;
}
if (ccline.cmdlen - spos > 5