diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2013-06-02 20:44:11 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2013-06-02 20:44:11 -0400 |
commit | 519c2333fe3cb89fd34236753a09b4b2f60cbce1 (patch) | |
tree | 6ad04fb44ddc2f3651693d1453fb3d30681b52a5 /src/LYStyle.c | |
parent | 43b53f58808f6681e864f35999d749922eec7868 (diff) | |
download | lynx-snapshots-519c2333fe3cb89fd34236753a09b4b2f60cbce1.tar.gz |
snapshot of project "lynx", label v2-8-8dev_15h
Diffstat (limited to 'src/LYStyle.c')
-rw-r--r-- | src/LYStyle.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/LYStyle.c b/src/LYStyle.c index 5f1aa2af..40c419c7 100644 --- a/src/LYStyle.c +++ b/src/LYStyle.c @@ -1,5 +1,5 @@ /* - * $LynxId: LYStyle.c,v 1.71 2012/02/10 01:24:18 tom Exp $ + * $LynxId: LYStyle.c,v 1.73 2013/06/02 19:17:06 tom Exp $ * * character level styles for Lynx * (c) 1996 Rob Partington -- donated to the Lyncei (if they want it :-) @@ -561,7 +561,7 @@ static void style_initialiseHashTable(void) void parse_userstyles(void) { char *name; - HTList *cur = lss_styles; + HTList *cur = LYuse_color_style ? lss_styles : 0; colorPairs = 0; style_initialiseHashTable(); @@ -807,4 +807,14 @@ void FreeCachedStyles(void) } } +/* + * Recompute the pairs associated with the color style. + */ +void update_color_style(void) +{ + CTRACE((tfp, "update_color_style %p\n", lss_styles)); + memset(our_pairs, 0, sizeof(our_pairs)); + parse_userstyles(); +} + #endif /* USE_COLOR_STYLE */ |