[BACK]Return to normal.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / vim

Diff for /src/usr.bin/vim/Attic/normal.c between version 1.4 and 1.5

version 1.4, 1996/09/26 14:13:07 version 1.5, 1996/10/14 03:55:20
Line 720 
Line 720 
                                 --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;
Line 734 
Line 734 
                 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;
Line 968 
Line 968 
                                          */                                           */
                                         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;
                                         }                                          }
Line 985 
Line 986 
                                          * "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;
                                 }                                  }
Line 2415 
Line 2417 
                                 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)

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5