aboutsummaryrefslogtreecommitdiff
path: root/debug.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-04-09 15:57:29 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-04-16 17:26:20 +0000
commit90c91d61482920881bb0c1ecf4babc001b3f598d (patch)
tree5063baa37da6ad2e308298479b76d8bbac71236f /debug.c
parentrender: implement ‘flash’ and search mode’s ‘dimming’ with a sub-surface (diff)
search/render: initial support for highlighting all visible matches
Before this patch, only the currently “selected” match was highlighted (by having the “selected” attribute, and by *not* dimming it, like the rest of the grid during a scrollback search). With this patch, we now highlight matches within the viewport. While searching, only the “primary” match is searched-for, and tracked. Then, when rendering a frame, we find all “secondary” matches as well. “holes” are added to the search-mode overlay by the means of an search-match iterator. The iterator’s text matching logic is *very* similar to what we do when the search criteria has been updated, and we re-search the scrollback. It should be possible to refactor this, and share code.
Diffstat (limited to 'debug.c')
0 files changed, 0 insertions, 0 deletions