Improve highlighting structure

- switched to a sparse delta based map
- true lazy-loading to avoid any unneccessary allocations
- fixed windows management api
This commit is contained in:
2026-02-11 18:18:28 +00:00
parent d79ea4e75a
commit 5b66f503e4
24 changed files with 481 additions and 549 deletions

View File

@@ -6,8 +6,8 @@
void Editor::handle_event(KeyEvent event) {
uint8_t old_mode = mode;
if (this->hover_active)
this->hover_active = false;
if (!this->hover_popup->hidden)
this->hover_popup->hidden = true;
if (event.key_type == KEY_SPECIAL) {
switch (event.special_modifier) {
case 0:
@@ -67,12 +67,12 @@ void Editor::handle_event(KeyEvent event) {
this->select_all();
break;
case CTRL('h'):
static_cast<HoverBox *>(ui::hover_popup->tile.get())->scroll(-1);
this->hover_active = true;
this->hover_popup->scroll(-1);
this->hover_popup->hidden = false;
break;
case CTRL('l'):
static_cast<HoverBox *>(ui::hover_popup->tile.get())->scroll(1);
this->hover_active = true;
this->hover_popup->scroll(1);
this->hover_popup->hidden = false;
break;
case 'h':
this->fetch_lsp_hover();