perf(highlight): use binary search to lookup RGB color names

This commit is contained in:
bfredl
2022-06-22 15:47:21 +02:00
parent dd591adf8a
commit 9690f8c57b
3 changed files with 20 additions and 13 deletions

View File

@@ -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)
{