shithub: orca

Download patch

ref: 38e1c60e020350719ee5257c37c225e9ef61a26c
parent: 64265d0b399f533995e5b60e85820d90873d91b6
author: cancel <cancel@cancel.fm>
date: Sat Jan 12 19:24:02 EST 2019

Add cell term attrs for non-locking input cells

--- a/tui_main.c
+++ b/tui_main.c
@@ -161,8 +161,13 @@
   if (gclass != Glyph_class_comment) {
     if ((m & (Mark_flag_lock | Mark_flag_input)) ==
         (Mark_flag_lock | Mark_flag_input)) {
+      // Standard locking input
       attr = A_normal | Cdef_normal;
+    } else if ((m & Mark_flag_input) == Mark_flag_input) {
+      // Non-locking input
+      attr = A_normal | Cdef_normal;
     } else if (m & Mark_flag_lock) {
+      // Locked only
       attr = A_dim | Cdef_normal;
     }
   }