shithub: orca

Download patch

ref: 0c17ec914f67ddce353e79c972c9dd098a09281b
parent: 37a2132367f34c44680da4e743e293dd781fead6
author: cancel <cancel@cancel.fm>
date: Sun Dec 2 10:29:08 EST 2018

Change tui styling of locking inputs

--- a/tui_main.c
+++ b/tui_main.c
@@ -114,8 +114,13 @@
     attr = A_bold | Cdef_normal;
     break;
   }
-  if (gclass != Glyph_class_comment && (m & Mark_flag_lock)) {
-    attr = A_dim | Cdef_normal;
+  if (gclass != Glyph_class_comment) {
+    if ((m & (Mark_flag_lock | Mark_flag_input)) ==
+        (Mark_flag_lock | Mark_flag_input)) {
+      attr = A_normal | Cdef_normal;
+    } else if (m & Mark_flag_lock) {
+      attr = A_dim | Cdef_normal;
+    }
   }
   if (m & Mark_flag_output) {
     attr = A_reverse;