search: find_next(): proper check for scrollback wrap around

Besides disallowing matches that crosses the scrollback wrap-around,
this also fixes a crash when the trying to search beyond the last
output, when the scrollback history hasn’t yet been completely filled.
This commit is contained in:
Daniel Eklöf 2021-03-28 20:59:35 +02:00
parent f87a13bbd2
commit e415f85829
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 15 additions and 5 deletions

View file

@ -153,6 +153,7 @@
* PTY not being drained when the client application terminates.
* `auto_left_margin` not being limited to `cub1`
(https://codeberg.org/dnkl/foot/issues/441).
* Crash in scrollback search mode when searching beyond the last output.
### Contributors