Problem: :messages history include the "search hit BOTTOM, continuing at TOP" message, which is noise. Solution: Set msg_hist_off before giving the warning and reset it after warning.
vim.wait()