]>
Commit | Line | Data |
---|---|---|
c00b8430 | 1 | diff -ur mutt-1.1.11.orig/curs_main.c mutt-1.1.11/curs_main.c |
aec575bf | 2 | --- mutt-1.1.11.orig/curs_main.c Sun Apr 16 16:38:52 2000 |
271abb50 | 3 | +++ mutt-1.1.11/curs_main.c Mon Apr 17 18:54:09 2000 |
c00b8430 | 4 | @@ -399,8 +399,8 @@ |
5 | ||
6 | menu = mutt_new_menu (); | |
7 | menu->menu = MENU_MAIN; | |
8 | - menu->offset = 1; | |
9 | - menu->pagelen = LINES - 3; | |
10 | + menu->offset = 1 + BlankLines; | |
11 | + menu->pagelen = LINES - 3 - 2*BlankLines; | |
12 | menu->make_entry = index_make_entry; | |
13 | menu->color = index_color; | |
14 | menu->current = ci_first_message (); | |
15 | diff -ur mutt-1.1.11.orig/globals.h mutt-1.1.11/globals.h | |
16 | --- mutt-1.1.11.orig/globals.h Fri Mar 3 11:10:08 2000 | |
271abb50 | 17 | +++ mutt-1.1.11/globals.h Mon Apr 17 18:54:09 2000 |
c00b8430 | 18 | @@ -122,6 +122,7 @@ |
19 | ||
20 | WHERE unsigned short Counter INITVAL (0); | |
21 | ||
22 | +WHERE short BlankLines; | |
23 | WHERE short HistSize; | |
24 | WHERE short PagerContext; | |
25 | WHERE short PagerIndexLines; | |
26 | diff -ur mutt-1.1.11.orig/init.h mutt-1.1.11/init.h | |
aec575bf | 27 | --- mutt-1.1.11.orig/init.h Sun Apr 16 16:38:53 2000 |
271abb50 | 28 | +++ mutt-1.1.11/init.h Mon Apr 17 18:54:09 2000 |
c00b8430 | 29 | @@ -254,6 +254,12 @@ |
30 | ** notifying you of new mail. This is independent of the setting of the | |
31 | ** ``$$beep'' variable. | |
32 | */ | |
33 | + { "blank_lines", DT_NUM, R_NONE, UL &BlankLines, 0 }, | |
34 | + /* | |
35 | + ** .pp | |
36 | + ** This variable controls the number of blank lines below help line and | |
37 | + ** above status line. Should not be set to big values. | |
38 | + */ | |
39 | { "bounce_delivered", DT_BOOL, R_NONE, OPTBOUNCEDELIVERED, 1 }, | |
40 | /* | |
41 | ** .pp | |
42 | diff -ur mutt-1.1.11.orig/menu.c mutt-1.1.11/menu.c | |
43 | --- mutt-1.1.11.orig/menu.c Fri Mar 3 11:10:10 2000 | |
271abb50 | 44 | +++ mutt-1.1.11/menu.c Mon Apr 17 18:54:09 2000 |
c00b8430 | 45 | @@ -125,13 +125,13 @@ |
46 | SETCOLOR (MT_COLOR_STATUS); | |
47 | mvprintw (option (OPTSTATUSONTOP) ? LINES-2 : 0, 0, "%-*.*s", COLS, COLS, menu->help); | |
48 | SETCOLOR (MT_COLOR_NORMAL); | |
49 | - menu->offset = 1; | |
50 | - menu->pagelen = LINES - 3; | |
51 | + menu->offset = 1 + BlankLines; | |
52 | + menu->pagelen = LINES - 3 - 2*BlankLines; | |
53 | } | |
54 | else | |
55 | { | |
aec575bf | 56 | - menu->offset = option (OPTSTATUSONTOP) ? 1 : 0; |
c00b8430 | 57 | - menu->pagelen = LINES - 2; |
aec575bf | 58 | + menu->offset = (option (OPTSTATUSONTOP) ? 1 : 0) + BlankLines; |
59 | + menu->pagelen = LINES - 2 - 2*BlankLines; | |
c00b8430 | 60 | } |
61 | ||
62 | mutt_show_error (); | |
63 | diff -ur mutt-1.1.11.orig/pager.c mutt-1.1.11/pager.c | |
64 | --- mutt-1.1.11.orig/pager.c Fri Mar 3 11:10:11 2000 | |
271abb50 | 65 | +++ mutt-1.1.11/pager.c Mon Apr 17 18:55:37 2000 |
c00b8430 | 66 | @@ -1510,9 +1510,9 @@ |
67 | { | |
68 | indexoffset = 0; | |
69 | statusoffset = IsHeader (extra) ? indexlen : 0; | |
70 | - bodyoffset = statusoffset + 1; | |
271abb50 | 71 | + bodyoffset = statusoffset + 1 + (PagerIndexLines > 0 ? 0 : BlankLines); |
c00b8430 | 72 | helpoffset = LINES - 2; |
73 | - bodylen = helpoffset - bodyoffset; | |
74 | + bodylen = helpoffset - bodyoffset - BlankLines; | |
75 | if (!option (OPTHELP)) | |
76 | bodylen++; | |
77 | } | |
78 | @@ -1523,8 +1523,9 @@ | |
79 | statusoffset = LINES - 2; | |
80 | if (!option (OPTHELP)) | |
81 | indexoffset = 0; | |
82 | - bodyoffset = indexoffset + (IsHeader (extra) ? indexlen : 0); | |
83 | - bodylen = statusoffset - bodyoffset; | |
84 | + bodyoffset = indexoffset + (IsHeader (extra) ? indexlen : 0) + | |
271abb50 | 85 | + (PagerIndexLines > 0 ? 0 : BlankLines); |
c00b8430 | 86 | + bodylen = statusoffset - bodyoffset - BlankLines; |
87 | } | |
88 | ||
89 | if (option (OPTHELP)) | |
90 | diff -ur mutt-1.1.11.orig/patchlist.c mutt-1.1.11/patchlist.c | |
aec575bf | 91 | --- mutt-1.1.11.orig/patchlist.c Sun Apr 16 16:38:53 2000 |
271abb50 | 92 | +++ mutt-1.1.11/patchlist.c Mon Apr 17 18:54:09 2000 |
c00b8430 | 93 | @@ -15,7 +15,8 @@ |
94 | /* DO NOT MODIFY BEFORE THIS LINE */ | |
95 | ||
96 | ||
97 | - | |
98 | + printf("Feature patch: blank_lines 1.1.11 by Michal Kochanowicz\n" | |
99 | Content-type: text/html ]>