Fix position lists not showing single item lists

This commit is contained in:
William committed 2022-06-09 14:30:18 +01:00
1 parent f6cb19cf40
commit d74cc97942
1 file changed
+1 -1
@@ -42,7 +42,7 @@ public abstract class PositionList {
display.add(getHeader(itemIndexStart + 1, itemIndexEnd + 1, lastItemIndex + 1));
// Add the items
if (itemIndexEnd - itemIndexStart == 0) {
if (itemIndexEnd - itemIndexStart < 0) {
display.add(getNoItemsMessage());
} else {
final StringJoiner itemJoiner = new StringJoiner(getItemSeparator());