pothos-gui: move block search match into its own method