Repairing only works when you have supplies from defeating ships, and you have to hold down "r" or the repair button -- which is probably a confusing interface.