jline/jline2 — pull request #16 by trptcolin (2012-01-22 17:55:29+00:00)
Title: Prevent unnecessary empty lines in completion list

The 3-space pad between columns should be taken into account for the calculation of how many columns to use, not just when adding padding.

Currently, if the terminal window is sized just right (modulo 3 of exact multiples of the max width), I get blank lines in the list of possible completions. This patch prevents that.