Changeset 19:b51da8d4048a for color.c

Show
Ignore:
Timestamp:
1998-06-16 08:02:09 (10 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
HEAD
Message:

Fix the "unknown color" bug reported by Vikas.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • color.c

    r0 r19  
    348348    s += 5; 
    349349    *col = strtol (s, &eptr, 10); 
    350     if (!*s || *eptr || *col < 0 || *col >= COLORS) 
     350    if (!*s || *eptr || *col < 0 || 
     351        (*col >= COLORS && !option(OPTNOCURSES) && has_colors())) 
    351352    { 
    352353      snprintf (err->data, err->dsize, "%s: color not supported by term", s);