diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-04-26 16:24:22 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-04-26 18:36:28 +0000 |
| commit | 0e9ebf433b589c15e17bd37f73991ecc71e9b3d6 (patch) | |
| tree | 2a8e7d3ff8fc835dff148b3af64388406aa81a19 /doc | |
| parent | search: assert that the match is *inside* the new viewport (diff) | |
search: fix infinite loop when highlighting all matches
find_next() did not always terminate correctly, causing
search_matches_next() to never terminate, which finally leads to an
infinite loop when rendering the search overlay surface, while finding
all matches to highlight.
The problem is that find_next(), after having found the initial
matching characters, enters a nested while loop that tries to match
the rest of the search criteria. This inner while loop did not check
if we’ve reached the last cell, and happily continued past
it (eventually wrappping around the scrollback buffer).
Closes #1047
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions
