loadMoreHeadlines: use correct offsets for starred vfeed in adaptive mode

This commit is contained in:
Andrew Dolgov 2015-10-27 15:36:51 +03:00
parent 389ae94a40
commit d38cd41253
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,8 @@ function loadMoreHeadlines() {
offset = unread_in_buffer;
} else if (_search_query) {
offset = num_all;
} else if (view_mode == "adaptive") {
} else if (view_mode == "adaptive" && !(getActiveFeedId() == -1 && !activeFeedIsCat())) {
// ^ starred feed shows both unread & read articles in adaptive mode
offset = num_unread > 0 ? unread_in_buffer : num_all;
} else {
offset = num_all;