~ubuntu-branches/debian/sid/neovim/sid

« back to all changes in this revision

Viewing changes to src/nvim/normal.h

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2016-02-20 22:41:32 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: package-import@ubuntu.com-20160220224132-e24n8lh3yo5ylt23
Tags: upstream-0.1.2
ImportĀ upstreamĀ versionĀ 0.1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 * Arguments for operators.
15
15
 */
16
16
typedef struct oparg_S {
17
 
  int op_type;                  /* current pending operator type */
18
 
  int regname;                  /* register to use for the operator */
19
 
  int motion_type;              /* type of the current cursor motion */
20
 
  int motion_force;             /* force motion type: 'v', 'V' or CTRL-V */
21
 
  bool use_reg_one;             /* true if delete uses reg 1 even when not
22
 
                                   linewise */
23
 
  bool inclusive;               /* true if char motion is inclusive (only
24
 
                                   valid when motion_type is MCHAR */
25
 
  bool end_adjusted;            /* backuped b_op_end one char (only used by
26
 
                                   do_format()) */
27
 
  pos_T start;                  /* start of the operator */
28
 
  pos_T end;                    /* end of the operator */
29
 
  pos_T cursor_start;           /* cursor position before motion for "gw" */
 
17
  int op_type;                  // current pending operator type
 
18
  int regname;                  // register to use for the operator
 
19
  int motion_type;              // type of the current cursor motion
 
20
  int motion_force;             // force motion type: 'v', 'V' or CTRL-V
 
21
  bool use_reg_one;             // true if delete uses reg 1 even when not
 
22
                                // linewise
 
23
  bool inclusive;               // true if char motion is inclusive (only
 
24
                                // valid when motion_type is MCHAR)
 
25
  bool end_adjusted;            // backuped b_op_end one char (only used by
 
26
                                // do_format())
 
27
  pos_T start;                  // start of the operator
 
28
  pos_T end;                    // end of the operator
 
29
  pos_T cursor_start;           // cursor position before motion for "gw"
30
30
 
31
 
  long line_count;              /* number of lines from op_start to op_end
32
 
                                   (inclusive) */
33
 
  bool empty;                   /* op_start and op_end the same (only used by
34
 
                                   op_change()) */
35
 
  bool is_VIsual;               /* operator on Visual area */
36
 
  bool block_mode;              /* current operator is Visual block mode */
37
 
  colnr_T start_vcol;           /* start col for block mode operator */
38
 
  colnr_T end_vcol;             /* end col for block mode operator */
 
31
  long line_count;              // number of lines from op_start to op_end
 
32
                                // (inclusive)
 
33
  bool empty;                   // op_start and op_end the same (only used by
 
34
                                // op_change())
 
35
  bool is_VIsual;               // operator on Visual area
 
36
  colnr_T start_vcol;           // start col for block mode operator
 
37
  colnr_T end_vcol;             // end col for block mode operator
39
38
  long prev_opcount;            // ca.opcount saved for K_EVENT
40
39
  long prev_count0;             // ca.count0 saved for K_EVENT
41
40
} oparg_T;