Resize leaf buffer.

Resize the leaf buffer if a line is too long for the buffer.

Closes #78.