diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-02-09 20:46:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-09 20:46:30 +0800 |
commit | 60e3940b4a94b2d089147579c7d62747543f0385 (patch) | |
tree | 0a7034bf1eacbc7508876e4e5558655c20e28d09 /src/nvim/ops.c | |
parent | 3959f3a9c8aa040f3562b0a5fd442c9c2f0a4f9a (diff) | |
parent | 3fe47647c7b902d882d3d72158f2712490506a75 (diff) | |
download | rneovim-60e3940b4a94b2d089147579c7d62747543f0385.tar.gz rneovim-60e3940b4a94b2d089147579c7d62747543f0385.tar.bz2 rneovim-60e3940b4a94b2d089147579c7d62747543f0385.zip |
Merge pull request #17346 from zeertzjq/vim-8.2.4242
vim-patch:8.2.{4242,4315}: put in Visual mode cannot be repeated
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index b8b639265c..f8ab6b2556 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -135,10 +135,18 @@ static char opchars[][3] = { Ctrl_X, NUL, OPF_CHANGE }, // OP_NR_SUB }; -/* - * Translate a command name into an operator type. - * Must only be called with a valid operator name! - */ +yankreg_T *get_y_previous(void) +{ + return y_previous; +} + +void set_y_previous(yankreg_T *yreg) +{ + y_previous = yreg; +} + +/// Translate a command name into an operator type. +/// Must only be called with a valid operator name! int get_op_type(int char1, int char2) { int i; |