How to prevent selection of other objects while in edit mode I use ctrl+click a lot to quickly select segments of edge loops in edit mode, but sometimes this results in accidentally clicking other objects outside of the one I'm editing (which means I've selected both the object I'm editing and some other object).

This gets kind of annoying because it interferes with my view any time I switch to wireframe viewport mode, not to mention I don't want to later accidentally affect objects I didn't notice I selected.

Is there any way to prevent selecting objects while in edit mode?
Select linked (Ctrl>+L) to select vertices/edges/faces linked in the current object and then press Shift+H to hide the unselected vertices.

Hidden geometry cannot be selected or edited.

When you are done editing press Alt+H to Unhide.

Consider also creating Vertex Groups to simplify the selection/hinding process of different parts of your objects.