aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'window.c')
-rw-r--r--window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/window.c b/window.c
index eb1c8e7..90ddbff 100644
--- a/window.c
+++ b/window.c
@@ -381,7 +381,8 @@ void window_draw(Win *win) {
if (text + match[i][0].rm_so <= cur && cur < text + match[i][0].rm_eo) {
/* within matched expression */
- attrs = rule->color.attr;
+ attrs = rule->color->attr;
+ break; /* first match wins */
}
}
}