aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/ops.h')
-rw-r--r--src/nvim/ops.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/nvim/ops.h b/src/nvim/ops.h
index 112ffbeaba..11049b72c0 100644
--- a/src/nvim/ops.h
+++ b/src/nvim/ops.h
@@ -3,14 +3,14 @@
#include <stdbool.h>
-#include "nvim/macros.h"
#include "nvim/ascii.h"
-#include "nvim/types.h"
-#include "nvim/extmark.h"
#include "nvim/eval/typval.h"
+#include "nvim/ex_cmds_defs.h" // for exarg_T
+#include "nvim/extmark.h"
+#include "nvim/macros.h"
+#include "nvim/normal.h" // for MotionType and oparg_T
#include "nvim/os/time.h"
-#include "nvim/normal.h" // for MotionType and oparg_T
-#include "nvim/ex_cmds_defs.h" // for exarg_T
+#include "nvim/types.h"
typedef int (*Indenter)(void);
@@ -90,6 +90,13 @@ typedef struct yankreg {
dict_T *additional_data; ///< Additional data from ShaDa file.
} yankreg_T;
+/// Modes for get_yank_register()
+typedef enum {
+ YREG_PASTE,
+ YREG_YANK,
+ YREG_PUT,
+} yreg_mode_t;
+
/// Convert register name into register index
///
/// @param[in] regname Register name.