Fix line cursor colours (fallout from `256-colours'), on both Windows and Unix.
[u/mdw/putty] / unix / pterm.c
index 23ef37f..54ab31d 100644 (file)
@@ -2163,7 +2163,7 @@ void do_cursor(Context ctx, int x, int y, wchar_t *text, int len,
            length = inst->font_height;
        }
 
-       gdk_gc_set_foreground(gc, &inst->cols[NCFGCOLOURS-1]);
+       gdk_gc_set_foreground(gc, &inst->cols[261]);
        if (passive) {
            for (i = 0; i < length; i++) {
                if (i % 2 == 0) {