Skip to content

Commit

Permalink
Fix possible sublist exception
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Jan 13, 2017
1 parent 2144e6a commit e618606
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4021,7 +4021,7 @@ private void update() {
PostResult pr = computePost(possible, completion(), null, completed);
AttributedString text = insertSecondaryPrompts(AttributedStringBuilder.append(prompt, buf.toString()), new ArrayList<>());
int promptLines = text.columnSplitLength(size.getColumns(), false, display.delayLineWrap()).size();
if (pr.lines >= size.getRows() - promptLines) {
if (pr.lines > size.getRows() - promptLines) {
int displayed = size.getRows() - promptLines - 1;
if (pr.selectedLine >= 0) {
if (pr.selectedLine < topLine) {
Expand Down

0 comments on commit e618606

Please sign in to comment.