After searching "foo", if you try to search "foobar", it deletes "foo" and searches "bar".