diff options
author | 2019-03-18 16:03:54 +0100 | |
---|---|---|
committer | 2019-03-18 16:15:05 +0100 | |
commit | 9be9c3c6f96605a8ef64cdbabe821bfa0e86092e (patch) | |
tree | d00579d5badb99c7c52dfa678a6e82245a1ab6fe | |
parent | b8e7dadd0d4317c4ac1bd21b23a88907a1ea7dce (diff) | |
download | newsboat-9be9c3c6f96605a8ef64cdbabe821bfa0e86092e.tar.gz newsboat-9be9c3c6f96605a8ef64cdbabe821bfa0e86092e.tar.zst newsboat-9be9c3c6f96605a8ef64cdbabe821bfa0e86092e.zip |
reset itempos when marking feed as read
Resetting the itempos has the advantage of starting at the first post
when new articles arrive.
-rw-r--r-- | src/itemlistformaction.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/itemlistformaction.cpp b/src/itemlistformaction.cpp index c09e11b2..b4e2accf 100644 --- a/src/itemlistformaction.cpp +++ b/src/itemlistformaction.cpp @@ -489,8 +489,13 @@ void ItemListFormAction::process_operation(Operation op, v->get_ctrl()->mark_all_read(feed); } if (cfg->get_configvalue_as_bool( - "markfeedread-jumps-to-next-unread")) + "markfeedread-jumps-to-next-unread")) { process_operation(OP_NEXTUNREAD); + } else { + LOG(Level::DEBUG, + "ItemListFormAction::reset itempos"); + f->set("itempos", "0"); + } invalidate(InvalidationMode::COMPLETE); v->set_status(""); } catch (const DbException& e) { |