]> git.pld-linux.org Git - packages/mutt.git/blame - mutt-blanklines.patch
5b445a129ee1e291f4a4f2449dbcb8de mutt-blanklines.patch
[packages/mutt.git] / mutt-blanklines.patch
Content-type: text/html ]> git.pld-linux.org Git - packages/mutt.git/blame - mutt-blanklines.patch


500 - Internal Server Error

Malformed UTF-8 character (fatal) at (eval 6) line 1, <$fd> line 206.
This page took 0.080241 seconds and 4 git commands to generate.
CommitLineData
c00b8430 1diff -ur mutt-1.1.11.orig/curs_main.c mutt-1.1.11/curs_main.c
2--- mutt-1.1.11.orig/curs_main.c Sun Apr 16 12:33:30 2000
3+++ mutt-1.1.11/curs_main.c Sun Apr 16 12:43:02 2000
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 ();
15diff -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
17+++ mutt-1.1.11/globals.h Sun Apr 16 12:41:08 2000
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;
26diff -ur mutt-1.1.11.orig/init.h mutt-1.1.11/init.h
27--- mutt-1.1.11.orig/init.h Sun Apr 16 12:33:30 2000
28+++ mutt-1.1.11/init.h Sun Apr 16 12:40:07 2000
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
42diff -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
44+++ mutt-1.1.11/menu.c Sun Apr 16 13:39:23 2000
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 {
56 menu->offset = option (OPTSTATUSONTOP) ? 1 : 0;
57- menu->pagelen = LINES - 2;
58+ menu->pagelen = LINES - 2 - BlankLines;
59 }
60
61 mutt_show_error ();
62diff -ur mutt-1.1.11.orig/pager.c mutt-1.1.11/pager.c
63--- mutt-1.1.11.orig/pager.c Fri Mar 3 11:10:11 2000
64+++ mutt-1.1.11/pager.c Sun Apr 16 13:44:39 2000
65@@ -1510,9 +1510,9 @@
66 {
67 indexoffset = 0;
68 statusoffset = IsHeader (extra) ? indexlen : 0;
69- bodyoffset = statusoffset + 1;
70+ bodyoffset = statusoffset + 1 + BlankLines;
71 helpoffset = LINES - 2;
72- bodylen = helpoffset - bodyoffset;
73+ bodylen = helpoffset - bodyoffset - BlankLines;
74 if (!option (OPTHELP))
75 bodylen++;
76 }
77@@ -1523,8 +1523,9 @@
78 statusoffset = LINES - 2;
79 if (!option (OPTHELP))
80 indexoffset = 0;
81- bodyoffset = indexoffset + (IsHeader (extra) ? indexlen : 0);
82- bodylen = statusoffset - bodyoffset;
83+ bodyoffset = indexoffset + (IsHeader (extra) ? indexlen : 0) +
84+ (option (OPTHELP) ? BlankLines : 0);
85+ bodylen = statusoffset - bodyoffset - BlankLines;
86 }
87
88 if (option (OPTHELP))
89diff -ur mutt-1.1.11.orig/patchlist.c mutt-1.1.11/patchlist.c
90--- mutt-1.1.11.orig/patchlist.c Sun Apr 16 12:33:41 2000
91+++ mutt-1.1.11/patchlist.c Sun Apr 16 13:10:52 2000
92@@ -15,7 +15,8 @@
93 /* DO NOT MODIFY BEFORE THIS LINE */
94
95
96-
97+ printf("Feature patch: blank_lines 1.1.11 by Michal Kochanowicz\n"
98