Package: newsbeuter / 2.9-8

12-highlight-article-priority.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Fix highlight-article not working with unread items
Origin: upstream, https://github.com/akrennmair/newsbeuter/commit/743409ec6aec01c45f0175e5d8703180ce5fd283
Bug: https://github.com/akrennmair/newsbeuter/issues/227

--- a/src/itemlist_formaction.cpp
+++ b/src/itemlist_formaction.cpp
@@ -702,12 +702,14 @@
 		if (rxman) {
 			int id;
 			if ((id = rxman->article_matches(item.first.get())) != -1) {
-				tmp_itemlist_format = utils::strprintf("<%d>%s</>", id, itemlist_format.c_str());
+				tmp_itemlist_format = utils::strprintf(
+				    "<%d>%s</>", id, tmp_itemlist_format.c_str());
 			}
 		}
 
 		if (item.first->unread()) {
-			tmp_itemlist_format = utils::strprintf("<unread>%s</>", itemlist_format.c_str());
+			tmp_itemlist_format = utils::strprintf(
+			    "<unread>%s</>", tmp_itemlist_format.c_str());
 		}
 
 		listfmt.add_line(fmt.do_format(tmp_itemlist_format, width), item.second);