comparison src/ex_cmds.c @ 533:c8b6b7e1005d v7.0150

updated for version 7.0150
author vimboss
date Sun, 25 Sep 2005 22:20:24 +0000
parents da9142bd190a
children 862863033fdd
comparison
equal deleted inserted replaced
532:7052f11a3dc9 533:c8b6b7e1005d
4517 * 3. substitute the string. 4517 * 3. substitute the string.
4518 */ 4518 */
4519 /* get length of substitution part */ 4519 /* get length of substitution part */
4520 sublen = vim_regsub_multi(&regmatch, sub_firstlnum, 4520 sublen = vim_regsub_multi(&regmatch, sub_firstlnum,
4521 sub, sub_firstline, FALSE, p_magic, TRUE); 4521 sub, sub_firstline, FALSE, p_magic, TRUE);
4522
4523 /* When the match included the "$" of the last line it may
4524 * include one line too much. */
4525 if (nmatch > curbuf->b_ml.ml_line_count - sub_firstlnum + 1)
4526 {
4527 nmatch = curbuf->b_ml.ml_line_count - sub_firstlnum + 1;
4528 skip_match = TRUE;
4529 }
4522 4530
4523 /* Need room for: 4531 /* Need room for:
4524 * - result so far in new_start (not for first sub in line) 4532 * - result so far in new_start (not for first sub in line)
4525 * - original text up to match 4533 * - original text up to match
4526 * - length of substituted part 4534 * - length of substituted part