version 1.4, 1996/09/26 14:13:07 |
version 1.5, 1996/10/14 03:55:20 |
|
|
--n; |
--n; |
} |
} |
else |
else |
n = Prenum; |
n = Prenum1 - 1; |
op_motion_type = MLINE; |
op_motion_type = MLINE; |
setpcmark(); |
setpcmark(); |
curwin->w_cursor.lnum = curwin->w_topline + n; |
curwin->w_cursor.lnum = curwin->w_topline + n; |
|
|
op_motion_type = MLINE; |
op_motion_type = MLINE; |
setpcmark(); |
setpcmark(); |
curwin->w_cursor.lnum = curwin->w_botline - 1; |
curwin->w_cursor.lnum = curwin->w_botline - 1; |
if (Prenum >= curwin->w_cursor.lnum) |
if (Prenum1 - 1 >= curwin->w_cursor.lnum) |
curwin->w_cursor.lnum = 1; |
curwin->w_cursor.lnum = 1; |
else |
else |
curwin->w_cursor.lnum -= Prenum; |
curwin->w_cursor.lnum -= Prenum1 - 1; |
cursor_correct(); /* correct for 'so' */ |
cursor_correct(); /* correct for 'so' */ |
beginline(MAYBE); |
beginline(MAYBE); |
break; |
break; |
|
|
*/ |
*/ |
if (Prenum1 == 1 && vim_strchr(p_cpo, CPO_CW) != NULL) |
if (Prenum1 == 1 && vim_strchr(p_cpo, CPO_CW) != NULL) |
{ |
{ |
|
op_inclusive = TRUE; |
op_motion_type = MCHAR; |
op_motion_type = MCHAR; |
break; |
break; |
} |
} |
|
|
* "cw" will change only one character! This is done by |
* "cw" will change only one character! This is done by |
* setting flag2. |
* setting flag2. |
*/ |
*/ |
|
op_inclusive = TRUE; |
flag = FALSE; |
flag = FALSE; |
flag2 = TRUE; |
flag2 = TRUE; |
} |
} |
|
|
colnr_t start, end; |
colnr_t start, end; |
|
|
op_block_mode = TRUE; |
op_block_mode = TRUE; |
|
|
|
/* make the start the upper left corner of the block */ |
|
if (curbuf->b_op_start.col > curbuf->b_op_end.col) |
|
{ |
|
int t; |
|
|
|
t = curbuf->b_op_start.col; |
|
curbuf->b_op_start.col = curbuf->b_op_end.col; |
|
curbuf->b_op_end.col = t; |
|
} |
getvcol(curwin, &(curbuf->b_op_start), |
getvcol(curwin, &(curbuf->b_op_start), |
&op_start_vcol, NULL, &op_end_vcol); |
&op_start_vcol, NULL, &op_end_vcol); |
if (!redo_VIsual_busy) |
if (!redo_VIsual_busy) |