diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-06-22 15:47:21 +0200 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2022-06-23 11:48:12 +0200 |
commit | 9690f8c57b6b918604c662d53cd5ae18c6f9a15d (patch) | |
tree | ae60f360eee825893e75fff8e4683af864cdf52a /src/nvim/ops.c | |
parent | dd591adf8a1d145b2fdf9115509bcc80c9ee7943 (diff) | |
download | rneovim-9690f8c57b6b918604c662d53cd5ae18c6f9a15d.tar.gz rneovim-9690f8c57b6b918604c662d53cd5ae18c6f9a15d.tar.bz2 rneovim-9690f8c57b6b918604c662d53cd5ae18c6f9a15d.zip |
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) { |