<<< Date Index >>>     <<< Thread Index >>>

Re: Display bug in the index with arrow_cursor



On Wed, Mar 30, 2005 at 07:01:08AM +0900, Tamotsu Takahashi wrote:

> On Tue, Mar 29, 2005 at 03:38:10PM +0200, Vincent Lefevre wrote:
> > When arrow_cursor is set, the corresponding 2 characters for
> > the non-selected messages have the default background (here,
> > black). I assume that this is expected. Now, if I select a
> > message for which the background color (in the index) is not
> > the default one, and select another message, the arrow cursor
> > is replaced by two spaces with the background of the message.
> > This is wrong. The default background should have been used
> > instead.
> > 
> > The third character also sometimes get the background of the
> > message, but this is not always reproducible.
> 
> I'm not sure what the intended coloring is, but
> the bug is in redraw_index (menu.c).

Oops, I'm sorry, I attached a wrong file to the previous message.
Try this new one.

-- 
tamo
--- menu.c.BAK  2005-03-29 22:13:46.000000000 +0900
+++ menu.c      2005-03-30 10:55:05.000000000 +0900
@@ -228,7 +228,10 @@
          addch (' ');
        }
        else
-         move (i - menu->top + menu->offset, 3);
+       {
+         attrset (menu->color (i));
+         addstr ("   ");
+       }
 
         print_enriched_string (menu->color(i), (unsigned char *) buf, 1);
         SETCOLOR (MT_COLOR_NORMAL);