comparison src/ops.c @ 699:2af8de31a3a8

updated for version 7.0211
author vimboss
date Wed, 01 Mar 2006 22:09:21 +0000
parents a28f83d37113
children 0f9f4761ad9c
comparison
equal deleted inserted replaced
698:e402b0af6083 699:2af8de31a3a8
3377 curwin->w_cursor.col++; 3377 curwin->w_cursor.col++;
3378 } 3378 }
3379 } 3379 }
3380 curwin->w_cursor.coladd = 0; 3380 curwin->w_cursor.coladd = 0;
3381 #endif 3381 #endif
3382 bd.textcol = 0;
3382 for (i = 0; i < y_size; ++i) 3383 for (i = 0; i < y_size; ++i)
3383 { 3384 {
3384 int spaces; 3385 int spaces;
3385 char shortline; 3386 char shortline;
3386 3387
3387 bd.startspaces = 0; 3388 bd.startspaces = 0;
3388 bd.endspaces = 0; 3389 bd.endspaces = 0;
3389 bd.textcol = 0;
3390 vcol = 0; 3390 vcol = 0;
3391 delcount = 0; 3391 delcount = 0;
3392 3392
3393 /* add a new line */ 3393 /* add a new line */
3394 if (curwin->w_cursor.lnum > curbuf->b_ml.ml_line_count) 3394 if (curwin->w_cursor.lnum > curbuf->b_ml.ml_line_count)
3534 ++curwin->w_cursor.col; 3534 ++curwin->w_cursor.col;
3535 ++curbuf->b_op_end.col; 3535 ++curbuf->b_op_end.col;
3536 } 3536 }
3537 } 3537 }
3538 } 3538 }
3539 new_cursor = curwin->w_cursor;
3540 curbuf->b_op_start = curwin->w_cursor; 3539 curbuf->b_op_start = curwin->w_cursor;
3541 } 3540 }
3542 /* 3541 /*
3543 * Line mode: BACKWARD is the same as FORWARD on the previous line 3542 * Line mode: BACKWARD is the same as FORWARD on the previous line
3544 */ 3543 */
3545 else if (dir == BACKWARD) 3544 else if (dir == BACKWARD)
3546 --lnum; 3545 --lnum;
3546 new_cursor = curwin->w_cursor;
3547 3547
3548 /* 3548 /*
3549 * simple case: insert into current line 3549 * simple case: insert into current line
3550 */ 3550 */
3551 if (y_type == MCHAR && y_size == 1) 3551 if (y_type == MCHAR && y_size == 1)