Joining two curves in edit mode I'm trying to get rid of some gaps in my mesh.

In object mode it looks like this


So it is one object. When I switch to edit mode it turns out that splines are subdivided. 

How do I join them?
Find and select the end control points
Hit F to join them with a new segment
Select the point which goes least in the direction you want, and X dissolve it.