about summary refs log tree commit diff stats
path: root/src/LYStyle.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2013-06-02 20:44:11 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2013-06-02 20:44:11 -0400
commit519c2333fe3cb89fd34236753a09b4b2f60cbce1 (patch)
tree6ad04fb44ddc2f3651693d1453fb3d30681b52a5 /src/LYStyle.c
parent43b53f58808f6681e864f35999d749922eec7868 (diff)
downloadlynx-snapshots-519c2333fe3cb89fd34236753a09b4b2f60cbce1.tar.gz
snapshot of project "lynx", label v2-8-8dev_15h
Diffstat (limited to 'src/LYStyle.c')
-rw-r--r--src/LYStyle.c14
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 */