fix: pass empty search backspace through

This commit is contained in:
2026-08-12 21:35:33 +09:00
parent 768ac3de74
commit 125e9349c0
4 changed files with 42 additions and 2 deletions

View File

@@ -620,8 +620,10 @@ searchkey(u32int ks, u32int mod, Str *com)
return 1;
}
if(ks == Kback){
if(search.raw.n == 0)
return 1;
if(search.raw.n == 0){
endsearch();
return 0;
}
spopr(&search.raw);
searchquery();
return 1;