commit | 1cb7e0976da10d7c8b66372c1cb176f2e6b8423d | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Aug 10 12:11:01 2011 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Aug 10 12:11:01 2011 +0200 |
tree | d32b4049d2b514ba00436077272c7650d9a35ea7 | |
parent | ea35ef68889b03c7d026ee5cc5e9aadbbd1d54bb [diff] [blame] |
updated for version 7.3.270 Problem: Illegal memory access. Solution: Swap conditions. (Dominique Pelle)
diff --git a/src/ops.c b/src/ops.c index bdc53de..4119356 100644 --- a/src/ops.c +++ b/src/ops.c
@@ -6311,7 +6311,7 @@ *wc += words; /* Add eol_size if the end of line was reached before hitting limit. */ - if (line[i] == NUL && i < limit) + if (i < limit && line[i] == NUL) { i += eol_size; chars += eol_size;