Do not dismiss buffer search when any modal is present (#3988)

Release Notes:

- Fixed buffer search being dismissed not after the modals are
18e537abdfKirill Bulatov committed on 1/9/2024, 9:36:32 PM· committed by GitHubparentsa579ef18b71b1d
3 files changedLine totals unavailable