diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2015-04-13 15:05:40 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2015-04-17 11:33:44 +0200 |
commit | 96e9d261cf00a049249f79264caeb9ee62706c9c (patch) | |
tree | 3e0195289241bfa5ac20ac972c207e3f4454b504 /src/nvim/ops.h | |
parent | c1a3d289d69b93092247e0eca3bf4b43992791a1 (diff) | |
download | rneovim-96e9d261cf00a049249f79264caeb9ee62706c9c.tar.gz rneovim-96e9d261cf00a049249f79264caeb9ee62706c9c.tar.bz2 rneovim-96e9d261cf00a049249f79264caeb9ee62706c9c.zip |
ops.c: eliminate static variable `y_current`
This variable isn't stateful, and should be passed around instead.
Helped-By: Scott Prager <splinterofchaos@gmail.com>
Helped-By: Michael Reed <m.reed@mykolab.com>
Diffstat (limited to 'src/nvim/ops.h')
-rw-r--r-- | src/nvim/ops.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/ops.h b/src/nvim/ops.h index 3251042c8f..99683165f9 100644 --- a/src/nvim/ops.h +++ b/src/nvim/ops.h @@ -47,6 +47,14 @@ typedef int (*Indenter)(void); #define OP_FORMAT2 26 /* "gw" format operator, keeps cursor pos */ #define OP_FUNCTION 27 /* "g@" call 'operatorfunc' */ +/// Contents of a yank (read-write) register +typedef struct yankreg { + char_u **y_array; ///< pointer to array of line pointers + linenr_T y_size; ///< number of lines in y_array + char_u y_type; ///< MLINE, MCHAR or MBLOCK + colnr_T y_width; ///< only set if y_type == MBLOCK +} yankreg_T; + /// Flags for get_reg_contents(). enum GRegFlags { kGRegNoExpr = 1, ///< Do not allow expression register. |