Skip to content

Commit

Permalink
Fixing minor bug, didn't seem to cause any problems
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbylight committed Oct 10, 2013
1 parent 6de18c3 commit 9245f34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/org/fife/ui/autocomplete/AutoCompletePopupWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -946,8 +946,7 @@ public void setUI(ListUI ui) {
setPrototypeCellValue(bc);
}
else {
// Our custom UI that is faster for long HTML completion
// lists.
// Our custom UI that is faster for long HTML completion lists.
ui = new FastListUI();
setPrototypeCellValue(null);
}
Expand Down
5 changes: 3 additions & 2 deletions src/org/fife/ui/autocomplete/CompletionListModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@ public int getSize() {
*/
public void setContents(Collection<Completion> contents) {
clear();
if (contents.size()>0) {
int count = contents.size();
if (count>0) {
delegate.addAll(contents);
fireIntervalAdded(this, 0, contents.size());
fireIntervalAdded(this, 0, count-1); // endpoints included (!)
}
}

Expand Down

0 comments on commit 9245f34

Please sign in to comment.