Mercurial > vim
comparison src/ex_cmds.c @ 1581:8dc36a64ae8b v7.1.294
updated for version 7.1-294
author | vimboss |
---|---|
date | Wed, 07 May 2008 11:10:28 +0000 |
parents | 2750661e93d5 |
children | 18ee39301b82 |
comparison
equal
deleted
inserted
replaced
1580:5e75d07bfe75 | 1581:8dc36a64ae8b |
---|---|
1158 #endif | 1158 #endif |
1159 | 1159 |
1160 if (!do_out) | 1160 if (!do_out) |
1161 msg_putchar('\n'); | 1161 msg_putchar('\n'); |
1162 | 1162 |
1163 /* Create the shell command in allocated memory. */ | |
1163 cmd_buf = make_filter_cmd(cmd, itmp, otmp); | 1164 cmd_buf = make_filter_cmd(cmd, itmp, otmp); |
1164 if (cmd_buf == NULL) | 1165 if (cmd_buf == NULL) |
1165 goto filterend; | 1166 goto filterend; |
1166 | 1167 |
1167 windgoto((int)Rows - 1, 0); | 1168 windgoto((int)Rows - 1, 0); |
1178 redraw_later_clear(); | 1179 redraw_later_clear(); |
1179 | 1180 |
1180 if (do_out) | 1181 if (do_out) |
1181 { | 1182 { |
1182 if (u_save((linenr_T)(line2), (linenr_T)(line2 + 1)) == FAIL) | 1183 if (u_save((linenr_T)(line2), (linenr_T)(line2 + 1)) == FAIL) |
1184 { | |
1185 vim_free(cmd_buf); | |
1183 goto error; | 1186 goto error; |
1187 } | |
1184 redraw_curbuf_later(VALID); | 1188 redraw_curbuf_later(VALID); |
1185 } | 1189 } |
1186 read_linecount = curbuf->b_ml.ml_line_count; | 1190 read_linecount = curbuf->b_ml.ml_line_count; |
1187 | 1191 |
1188 /* | 1192 /* |
4469 linenr_T sub_firstlnum; /* nr of first sub line */ | 4473 linenr_T sub_firstlnum; /* nr of first sub line */ |
4470 | 4474 |
4471 /* | 4475 /* |
4472 * The new text is build up step by step, to avoid too much | 4476 * The new text is build up step by step, to avoid too much |
4473 * copying. There are these pieces: | 4477 * copying. There are these pieces: |
4474 * sub_firstline The old text, unmodifed. | 4478 * sub_firstline The old text, unmodified. |
4475 * copycol Column in the old text where we started | 4479 * copycol Column in the old text where we started |
4476 * looking for a match; from here old text still | 4480 * looking for a match; from here old text still |
4477 * needs to be copied to the new text. | 4481 * needs to be copied to the new text. |
4478 * matchcol Column number of the old text where to look | 4482 * matchcol Column number of the old text where to look |
4479 * for the next match. It's just after the | 4483 * for the next match. It's just after the |