Improved tab completion by removing zero length buffers