make it more safe + clippy

This commit is contained in:
TcMits
2025-09-11 00:14:38 +07:00
parent eeef8b85fa
commit 5caf9a2640

View File

@@ -575,7 +575,7 @@ impl Limbo {
// if the address is not the same, meaning the string has been reallocated
// so we just drop the part we took earlier
if ptr.addr() != old_address {
if ptr.addr() != old_address || !app.input_buff.is_empty() {
return;
}