misc1: fix pvs/v781

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

View File

@ -277,7 +277,7 @@ int get_last_leader_offset(char_u *line, char_u **flags)
// whitespace. Otherwise we would think we are inside a
// comment if the middle part appears somewhere in the middle
// of the line. E.g. for C the "*" appears often.
for (j = 0; ascii_iswhite(line[j]) && j <= i; j++) {
for (j = 0; j <= i && ascii_iswhite(line[j]); j++) {
}
if (j < i) {
continue;