[PATCH] recook current article if changing news_headers_(not_)to_display

Urs Janßen <[email protected]> Wed, 2 Oct 2013 20:08:30 +0200
Newsgroups gmane.network.tin.devel
Message-ID <[email protected]>
--xHFwDpU9dbj6ez1V
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

recooking of article was not done when changing
news_headers_to_display and/or news_headers_not_to_display
in the 'M'enu. The attached patch should fix that if done from
the attributes menu (sub menu reachable via TAB from the normal one).

urs
-- 
"Only whimps use tape backup: _real_ men just upload their important stuff
 on ftp, and let the rest of the world mirror it ;)" - Linus

--xHFwDpU9dbj6ez1V
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="options_menu.c.diff"

=== modified file 'src/options_menu.c'
--- src/options_menu.c	2013-09-28 23:45:33 +0000
+++ src/options_menu.c	2013-10-02 17:49:31 +0000
@@ -2323,6 +2323,7 @@
 							if (prompt_option_string(option)) {
 								SET_STRING_ATTRIBUTE(news_headers_to_display);
 								build_news_headers_array(curr_scope->attribute, TRUE);
+								changed |= DISPLAY_OPTS;
 							}
 							break;
 
@@ -2330,6 +2331,7 @@
 							if (prompt_option_string(option)) {
 								SET_STRING_ATTRIBUTE(news_headers_to_not_display);
 								build_news_headers_array(curr_scope->attribute, FALSE);
+								changed |= DISPLAY_OPTS;
 							}
 							break;
 


--xHFwDpU9dbj6ez1V--