eeschema: irrelevant bus alias members reported in info bar for similarly-named nets

Description

Noticed while reproing another bug, but if you have a bus alias a and you have a net that is named a (or sometimes when the net ends in .a), the info bar will report the bus alias members for a even though you aren't selecting a bus.

Screenshot_2024-07-09_15-50-45

Steps to reproduce

  1. Create a bus alias named "a" (or start from this project: bug.zip )
  2. Create a standard label of "a"
  3. Observe the info bar; it has a bus alias members entry.
  4. If using the above project, you can also navigate into test1 and click on 1.a (shows the "bus alias a members" in the info bar) and 1.b (does not)

KiCad Version

Application: KiCad Schematic Editor x86_64 on x86_64

Version: 8.0.3-97-g006f0a95c1, release build

Libraries:
	wxWidgets 3.2.4
	FreeType 2.11.1
	HarfBuzz 2.7.4
	FontConfig 2.13.1
	libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.17

Platform: Ubuntu 22.04.4 LTS, 64 bit, Little endian, wxGTK, X11, xubuntu, x11
OpenGL: Intel, Mesa Intel(R) Graphics (RPL-P), 4.6 (Compatibility Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2

Build Info:
	Date: Jun 24 2024 11:45:01
	wxWidgets: 3.2.4 (wchar_t,wx containers) GTK+ 3.24
	Boost: 1.74.0
	OCC: 7.6.3
	Curl: 7.81.0
	ngspice: 36
	Compiler: GCC 11.4.0 with C++ ABI 1016

Build settings: