mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-20 05:33:47 -04:00
search: remember last searched-for string between searches
Regardless of how we exit search mode (commit or cancel), the search string is remembered. The next time we enter search mode, the last searched-for string will be used when searching for the next/prev match (ctrl+r, ctrl+s), and the search query is empty.
This commit is contained in:
parent
22266e384b
commit
739e7d76b4
3 changed files with 33 additions and 5 deletions
|
|
@ -1638,6 +1638,7 @@ term_destroy(struct terminal *term)
|
|||
&term->custom_glyphs.legacy, GLYPH_LEGACY_COUNT);
|
||||
|
||||
free(term->search.buf);
|
||||
free(term->search.last.buf);
|
||||
|
||||
if (term->render.workers.threads != NULL) {
|
||||
for (size_t i = 0; i < term->render.workers.count; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue