diff options
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 510aa1c8ac..20bbc5b440 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -57,7 +57,7 @@ #include "nvim/vim.h" #include "nvim/window.h" -static yankreg_T y_regs[NUM_REGISTERS]; +static yankreg_T y_regs[NUM_REGISTERS] = { 0 }; static yankreg_T *y_previous = NULL; // ptr to last written yankreg @@ -2571,12 +2571,6 @@ int op_change(oparg_T *oap) return retval; } -/// set all the yank registers to empty (called from main()) -void init_yank(void) -{ - memset(&(y_regs[0]), 0, sizeof(y_regs)); -} - #if defined(EXITFREE) void clear_registers(void) { |