diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-06-23 13:42:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-23 13:42:57 +0200 |
commit | 05ca14a8810555495c309b8add3002773c77123d (patch) | |
tree | 2325fec350e9942d36d80f45f442cb2ddbf48581 /src/nvim/ops.c | |
parent | 84de4d86553bd47ea8312b2fcc3c2bea9128611c (diff) | |
parent | 9690f8c57b6b918604c662d53cd5ae18c6f9a15d (diff) | |
download | rneovim-05ca14a8810555495c309b8add3002773c77123d.tar.gz rneovim-05ca14a8810555495c309b8add3002773c77123d.tar.bz2 rneovim-05ca14a8810555495c309b8add3002773c77123d.zip |
Merge pull request #19058 from bfredl/miniopt
perf(highlight): use binary search to lookup RGB color names
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) { |