Line 0
Link Here
|
|
|
1 |
--- mutt.h.orig Fri Jun 4 13:35:59 2004 |
2 |
+++ mutt.h Fri Jun 4 13:49:26 2004 |
3 |
@@ -350,6 +350,7 @@ |
4 |
OPTBEEPNEW, |
5 |
OPTBOUNCEDELIVERED, |
6 |
OPTCHECKNEW, |
7 |
+ OPTCOLORAFTEREOL, |
8 |
OPTCOLLAPSEUNREAD, |
9 |
OPTCONFIRMAPPEND, |
10 |
OPTCONFIRMCREATE, |
11 |
--- init.h.orig Fri Jun 4 13:35:56 2004 |
12 |
+++ init.h Fri Jun 4 13:45:43 2004 |
13 |
@@ -315,6 +315,12 @@ |
14 |
** \fIcheck_new\fP is \fIunset\fP, no check for new mail is performed |
15 |
** while the mailbox is open. |
16 |
*/ |
17 |
+ { "color_after_eol", DT_BOOL, R_NONE, OPTCOLORAFTEREOL, 1 }, |
18 |
+ /* |
19 |
+ ** .pp |
20 |
+ ** When \fIset\fP, Mutt will color a line after the last character extending |
21 |
+ ** to the end of the window. |
22 |
+ */ |
23 |
{ "collapse_unread", DT_BOOL, R_NONE, OPTCOLLAPSEUNREAD, 1 }, |
24 |
/* |
25 |
** .pp |
26 |
--- pager.c.orig Sat Jun 5 09:13:33 2004 |
27 |
+++ pager.c Sat Jun 5 09:12:31 2004 |
28 |
@@ -1392,7 +1392,7 @@ |
29 |
* ncurses does an implicit clrtoeol() when you do addch('\n') so we have |
30 |
* to make sure to reset the color *after* that |
31 |
*/ |
32 |
- if (flags & M_SHOWCOLOR) |
33 |
+ if (option (OPTCOLORAFTEREOL) && (flags & M_SHOWCOLOR)) |
34 |
{ |
35 |
m = ((*lineInfo)[n].continuation) ? ((*lineInfo)[n].syntax)[0].first : n; |
36 |
if ((*lineInfo)[m].type == MT_COLOR_HEADER) |
37 |
@@ -1406,6 +1406,16 @@ |
38 |
#endif |
39 |
} |
40 |
|
41 |
+ /* |
42 |
+ * reset the color back to normal. This *must* come before the |
43 |
+ * addch('\n') for the color not to be filled to the right margin. |
44 |
+ */ |
45 |
+ if (!option (OPTCOLORAFTEREOL) && (flags & M_SHOWCOLOR)) |
46 |
+ { |
47 |
+ SETCOLOR(MT_COLOR_NORMAL); |
48 |
+ BKGDSET(MT_COLOR_NORMAL); |
49 |
+ } |
50 |
+ |
51 |
/* ncurses always wraps lines when you get to the right side of the |
52 |
* screen, but S-Lang seems to only wrap if the next character is *not* |
53 |
* a newline (grr!). |
54 |
@@ -1420,7 +1430,7 @@ |
55 |
* addch('\n'), otherwise the color for this line will not be |
56 |
* filled to the right margin. |
57 |
*/ |
58 |
- if (flags & M_SHOWCOLOR) |
59 |
+ if (option (OPTCOLORAFTEREOL) && (flags & M_SHOWCOLOR)) |
60 |
{ |
61 |
SETCOLOR(MT_COLOR_NORMAL); |
62 |
BKGDSET(MT_COLOR_NORMAL); |