comparison src/ops.c @ 2996:b9182da84c7e v7.3.270

updated for version 7.3.270 Problem: Illegal memory access. Solution: Swap conditions. (Dominique Pelle)
author Bram Moolenaar <bram@vim.org>
date Wed, 10 Aug 2011 12:11:01 +0200
parents fe6ad3fd8532
children d68f20a86a3e
comparison
equal deleted inserted replaced
2995:d53f6e5e57f3 2996:b9182da84c7e
6309 if (is_word) 6309 if (is_word)
6310 words++; 6310 words++;
6311 *wc += words; 6311 *wc += words;
6312 6312
6313 /* Add eol_size if the end of line was reached before hitting limit. */ 6313 /* Add eol_size if the end of line was reached before hitting limit. */
6314 if (line[i] == NUL && i < limit) 6314 if (i < limit && line[i] == NUL)
6315 { 6315 {
6316 i += eol_size; 6316 i += eol_size;
6317 chars += eol_size; 6317 chars += eol_size;
6318 } 6318 }
6319 *cc += chars; 6319 *cc += chars;