31222: Stop {up,down}-line-or-beginning-search from triggering warn_create_global

This is a followup to 30995 taking Peter's suggestions from 30997 into
account.