diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2015-04-17 23:05:26 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2015-04-17 23:05:26 +0200 |
commit | a88e2f4fd4c3e10aabd41e758cc845332be013da (patch) | |
tree | 817480a6c2d859fb46cffe59a7e61590501653aa /src/nvim/ops.h | |
parent | 607a118de4eb36bd10d86234238ff3debc0032c0 (diff) | |
parent | 26fedb133d817274a9f4bf54f97d3e5adfba67b4 (diff) | |
download | rneovim-a88e2f4fd4c3e10aabd41e758cc845332be013da.tar.gz rneovim-a88e2f4fd4c3e10aabd41e758cc845332be013da.tar.bz2 rneovim-a88e2f4fd4c3e10aabd41e758cc845332be013da.zip |
Merge pull request #2411 from bfredl/yankregs
Cleanup implementation of registers and fix missing clipboard support in `:redir`
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. |