Cosmetics.
[selector.git] / selector.cc
index e854405..fff8f56 100644 (file)
@@ -502,12 +502,19 @@ void update_screen(int *current_line, int *temporary_line, int motion,
     addstr(" ");
   }
 
-  if(use_regexp) {
-    addstr(" [regexp]");
-  }
+  if(use_regexp || case_sensitive) {
+    addstr("[");
+    if(use_regexp) {
+      addstr("regexp");
+    }
 
-  if(case_sensitive) {
-    addstr(" [case]");
+    if(case_sensitive) {
+      if(use_regexp) {
+        addstr(",");
+      }
+      addstr("case");
+    }
+    addstr("]");
   }
 
   move(0, cursor_x);