Thread View: news.software.nn
1 messages
1 total messages
Started by Larry Bouzane
Thu, 14 Nov 1991 20:47
Unofficial patch to fix a few problems with NN version 6.4.16
Author: Larry Bouzane
Date: Thu, 14 Nov 1991 20:47
Date: Thu, 14 Nov 1991 20:47
172 lines
5375 bytes
5375 bytes
Kim seems to have vanished. Unfortunately there are a few problems with
NN 6.4.16 that just had to be fixed. The patch below contains fixes for
the following problems:
- core dump due to selecting last_article+1 on screen
- core dump due to consolidating (closing) last subject in a group
under certain circumstances.
- selecting consolidated articles with = command did not highlight
the selected consolidated articles correctly.
- fixed unconditional CLEAR TO END OF LINE that erased the next line on
some terminals. (ie MINE)
No guarantees with any of these. Have fun. (maybe others out there
with fixes to problems that they noticed would post their fixes as
well)
Are you out there Kim?
Larry
===================================================================
RCS file: RCS/menu.c,v
retrieving revision 1.1
diff -c -r1.1 menu.c
*** /tmp/,RCSt1004819 Thu Nov 14 16:29:08 1991
--- menu.c Thu Nov 14 16:29:16 1991
***************
*** 399,406 ****
else {
if (collapse_subject > 0)
so_printf("%-.*s", collapse_subject, ah->subject);
! lsubj -= 2 + collapse_subject;
! so_printf("<>%s", ah->subject + ah->subj_length - lsubj);
}
}
--- 399,405 ----
else {
if (collapse_subject > 0)
so_printf("%-.*s", collapse_subject, ah->subject);
! so_printf("<>%s", ah->subject + ah->subj_length - lsubj + collapse_subject + 2);
}
}
***************
*** 408,414 ****
so_printf(ah->lines >= 0 ? " +%d" : " +?", ah->lines);
so_end();
! if (ah->flag & A_CLOSED) clrline_noflush();
out:
ah->disp_attr = last_attr;
--- 407,414 ----
so_printf(ah->lines >= 0 ? " +%d" : " +?", ah->lines);
so_end();
! if ((ah->flag & A_CLOSED) && lsubj > ah->subj_length)
! clrline_noflush();
out:
ah->disp_attr = last_attr;
***************
*** 455,461 ****
{
register article_number i;
register article_header *ah, **ahp;
! int count = 0, o_cura;
extern int kill_file_loaded;
if (mode == 1 && re == NULL)
--- 455,461 ----
{
register article_number i;
register article_header *ah, **ahp;
! int count = 0, o_cura, should_mark;
extern int kill_file_loaded;
if (mode == 1 && re == NULL)
***************
*** 462,474 ****
if (!kill_file_loaded && !init_kill()) return 0;
o_cura = cura;
! cura = -1;
for (i = 0, ahp = articles; i < n_articles; i++, ahp++) {
ah = *ahp;
! if (cura >= 0 && (ah->flag & A_ROOT_ART)) {
! mark();
! cura = -1;
}
if (re != NULL) {
if (!regexec_cf(re, select_on_sender ? ah->sender : ah->subject)) continue;
--- 462,481 ----
if (!kill_file_loaded && !init_kill()) return 0;
o_cura = cura;
! should_mark = 0;
+ /*
+ * note: this code assumes that a visible article will be found
+ * before anything is marked
+ */
for (i = 0, ahp = articles; i < n_articles; i++, ahp++) {
ah = *ahp;
! if (IS_VISIBLE(ah)) {
! if (should_mark) {
! mark();
! should_mark = 0;
! }
! cura = i - firsta;
}
if (re != NULL) {
if (!regexec_cf(re, select_on_sender ? ah->sender : ah->subject)) continue;
***************
*** 478,493 ****
count++;
if (ah->attr & A_SELECT) continue;
ah->attr = A_SELECT;
! if (firsta <= i && i <= (firsta+numa)) {
! cura = i - firsta;
! if ((ah->flag & A_CLOSED) == 0) {
! mark();
! cura = -1;
! }
! }
}
! if (cura >= 0) mark();
if (count)
msg("Selected %d article%s", count, plural((long)count));
--- 485,495 ----
count++;
if (ah->attr & A_SELECT) continue;
ah->attr = A_SELECT;
! if (firsta <= i && i <= (firsta+numa))
! should_mark = 1;
}
! if (should_mark) mark();
if (count)
msg("Selected %d article%s", count, plural((long)count));
***************
*** 725,731 ****
article_id = map & ~K_ARTICLE_ID;
map = K_ARTICLE_ID;
! if (article_id < 0 || article_id > menu_articles) {
ding();
goto loop;
}
--- 727,733 ----
article_id = map & ~K_ARTICLE_ID;
map = K_ARTICLE_ID;
! if (article_id < 0 || article_id >= menu_articles) {
ding();
goto loop;
}
***************
*** 1639,1644 ****
--- 1641,1647 ----
}
cura = article_id;
next_cura = next_root_article(firsta + cura) - firsta;
+ if (next_cura < 0 || next_cura > numa) next_cura = 0;
if (cura >= 0) goto partial_redraw_nc;
articles[cura + firsta]->menu_line = articles[firsta]->menu_line;
firsta += cura;
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads