Immediately merge on commit if necessary.

Use sliding buffer for search.