Water rises to height ‘$h$’ in capillary tube. If the length of capillary tube above the surface of water is made less than ‘$h$’, then:
(2015 Re)
When a capillary tube is of insufficient length, the liquid rises to the top and changes its meniscus radius to maintain equilibrium ($hR = \text{constant}$). It does not overflow.